Install the Nextmv CLI

Tutorial to install the Nextmv CLI

The Nextmv CLI is a command-line interface that allows you to manage and deploy decision models and interact with them. This guide walks you through removing the old Nextmv CLI (if applicable) and installing the new one.

1. Remove the old CLI

Remove the old CLI binary from your system, if you have it. More information about why we made this change and how to transition to the new CLI can be found in the migration guide.

rm ~/.nextmv/nextmv
Copy

Optionally, you can also clean up your PATH environment variable to remove any references to the old CLI installation: ~/.nextmv.

  1. Open your shell configuration file (e.g., ~/.zshrc, ~/.bashrc, ~/.bash_profile, ~/.profile, or similar).

  2. Look for and delete lines similar to this.

    export PATH=/Users/your-username/.nextmv:$PATH
    
    Copy
  3. Save the file and start a new terminal session for the changes to take full effect.

  4. Verify that .nextmv is no longer in your PATH:

    echo $PATH
    
    Copy

    The output should not contain any .nextmv directories.

2. Install the new Nextmv CLI

Python 3.10 or later is required. Install using the Python package manager of your choice. The CLI is available for macOS, Linux, and Windows.

pip install nextmv
Copy

Check that the CLI was installed successfully.

nextmv -h
Copy

Page last updated

Go to on-page nav menu