You can run the CLI without installing it by using npx:
Copy
npx @octomind/octomind -h
This is useful for one-off commands or trying out the CLI without installing it.
Show 3. Advanced installation (for dependency conflicts)
If you encounter dependency conflicts with the global installation, you can install the package in a custom location:
Copy
mkdir -p ~/.local/packagescd ~/.local/packagesnpm install @octomind/octomind@latest# either create an aliasalias octomind="node ~/.local/packages/node_modules/@octomind/octomind/dist/index.js"# or create a symlinksudo ln -s ~/.local/packages/node_modules/@octomind/octomind/dist/index.js /usr/local/bin/octomind
This will install the package to ~/.local/packages and create symlinks in /usr/local/bin or creates an alias.
This is necessary to avoid dependency conflicts when installing the package globally.If you also want to install auto completion (see below), then you should use a symlink in favor of an alias.
Please make sure that there is no package.json in the ~/.local/packages
directory or above as this will change where npm will install the package.
After installing the CLI, you need to initialize it by setting up your API key and optionally a test target ID. This configuration allows you to avoid passing these parameters for subsequent commands.
The option to create your API key can be found within the settings menu.
Project settings menu icon, 12/2025
Click on Create an API key.
Create an API key button, 12/2025
You then will be navigated to our auth provider where you can create a new organization-level API key.Add the API key to your CI provider as a secret to run test reports from the CI.
# Initialize with API keyoctomind init --api-key your-api-key-here# Initialize with API key and test target IDoctomind init --api-key your-api-key-here --test-target-id your-test-target-id# Force overwrite existing configurationoctomind init --force
Once initialized, you can use other CLI commands without having to specify your API key or test
target ID with each command.
On macOS and linux you can enable autocompletion by running the following command (works for bash, zsh & fish):
Copy
npx @octomind/octomind install-completion
You can disable autocompletion by running the following command:
Copy
npx @octomind/octomind uninstall-completion
Autocompletion will only work if you have installed the package globally and created a config file with npx @octomind/octomind init.
This way even entityIds like environmentIds or testCaseIds will be autocompleted.