CLI overview¶
The Nextmv CLI is a command-line interface that allows you to manage and deploy
decision models and interact with them. It is built on top of the nextmv
Python SDK.
- Install the CLI.
- Quick start with the CLI.
- Configure the CLI for Cloud operations.
- Set up the MCP server.
The CLI prints all the data to standard output (stdout), typically in JSON
format. For easier processing, all information and messages are printed to
standard error (stderr). Many commands support the --output option to save
the output to a file instead of printing it to stdout.
Installation¶
Info
Have a previous version of the Nextmv CLI? You'll need to uninstall. Learn more in this migration guide.
Install the Nextmv CLI. Python >=3.10 is required. Install using
the Python package manager of your choice. The CLI is available for macOS,
Linux, and Windows.
To check if the installation was successful, run the following command to show the help menu:
Info
Are you using the CLI for cloud operations? You will need to configure it.
Quick start¶
Run the following command to go through an interactive tutorial of the CLI:
Update the CLI¶
To update to the latest version, use the same package manager you installed with.
Uninstall the CLI¶
To uninstall the Nextmv CLI, use the appropriate command for your Python package manager.
Command organization¶
The Nextmv CLI roughly organizes the commands using the following structure:
Where:
domain: the domain of the command, such ascloudorlocal. Root commands don't have a specific domain, likemanifest, which is directly an entity.entity: the entity the command operates on, such asapporinstance.action: the action the command performs, such ascreateorlist.options: the options for the command, such as--app-idor--name. The CLI does not use positional arguments, meaning all flags are passed as options, with some being required while others are optional. Each command will clearly indicate which options are required and which are optional.