Theneo CLI
The Theneo CLI (Command Line Interface) is s a command-line tool for effortless management of the Theneo platform from your terminal. Create, manage, and publish API documentation with ease, all without leaving your command line.
You can find Github repo here or the npm package here → https://www.npmjs.com/package/@theneo/cli
To install the Theneo CLI, use the following command:
Bash
npm install -g @theneo/cli@latestThis command installs the Theneo CLI globally on your machine, allowing it to be run from any directory.
Basic Usage
To get started with Theneo CLI, you can use the help command:
Bash
theneo helpThis command provides a list of available options and commands:
General Options:
- -V, --version: Outputs the version number of the Theneo CLI.
- -h, --help: Displays help for a specific command.
Primary Commands:
- login: Logs into the Theneo CLI.
- project
<action>:Executes project related commands. - workspace
<action>:Executes workspace related commands. - version
<action>:Executes project version related commands. - help [command]: Provides help for a specific command.
Common Use Cases
CLI Export
Export Project Data in Markdown Format - Beta Feature
Bash
Usage: theneo export [options] Options: --project
project slug --projectVersion
Version slug --workspace
Enter workspace slug where the project should be created in, if not present uses default workspace --profile
Use a specific profile from your config file. --dirExport an OpenAPI Spec - Beta Feature
You can export your Theneo docs into an openAPI spec, by running the following command
Bash
theneo export --openapi --format jsonManaging Projects Using Markdown Files via CLI
Create a New Project from Markdown Files
Bash
Usage: theneo create [options]
Options:
--dir <directory> directory location where the project will be exported
--name <project-name> project name
--workspace <workspace-slug> Enter workspace slug where the project should be created in, if not present uses default workspace
--profile <string> Use a specific profile from your config file.
-h, --help display help for commandImport Project Data from Markdown Files
Bash
Usage: theneo import [options]
Update theneo project from generated markdown directory
Options:
--project <project-slug> project slug
--workspace <workspace-slug> Enter workspace slug where the projectBest Practices and Tips
- Always check the version of the Theneo CLI installed with
theneo -Vto ensure compatibility with your project. - Utilize the
--helpoption regularly to understand the specific requirements of each command. - Regularly update your Theneo CLI to access the latest features and bug fixes.
- When importing or updating projects, ensure your API specifications are correctly formatted to avoid errors.
Was this section helpful?
What made this section unhelpful for you?
On this page
- Theneo CLI