Theneo CLI
The Theneo CLI creates, manages, and publishes docs from your terminal — everything in the dashboard, scripted.
Install
npm install -g @theneo/cli@latest
This installs the CLI globally so you can run theneo from any directory.
Basic usage
Get a list of available commands and options:
theneo help
General options
-v, --version— output the CLI version number.-h, --help— display help for a command.
Primary commands
login— log in to the Theneo CLI.project <action>— list, create, import, preview, publish and delete projects.workspace <action>— list your workspaces.version <action>— manage project versions and changelog subscribers.export— export a project as Markdown or an OpenAPI spec.audit— check a Theneo project folder on disk before you import it.preview— publish a Markdown folder to a temporary branch and get a preview link.branch <action>— create, rebase, link, publish and delete documentation branches.migrate— convert docs from any platform into a Theneo project with your AI coding agent (guide). New in 0.25.0.help [command]— get help for a specific command.
In this guide
Common Commands
Log in, create and update projects, publish, manage versions, and more, with copy-paste examples.
Import & Export
Import projects and export them as Markdown or an OpenAPI spec from the command line.
Migrate existing docs
Run theneo migrate to convert docs from any platform with your AI coding agent.
Docs-as-Code with Markdown
Create and update projects from Markdown files on disk, and target specific project tabs.
Branches & Preview Deployments
Work on a branch and share a temporary preview link before you publish.
Two-way Git sync
Wire the CLI into GitHub or GitLab to keep your repo and Theneo in sync automatically.
Best practices
- Check your installed version with
theneo -vto ensure compatibility. - Use
--helpregularly to understand each command’s requirements. - Keep the CLI updated for the latest features and fixes.
- Ensure your API specs are correctly formatted before importing to avoid errors.
On this page
- Theneo CLI