tensor9 CLI is the primary tool for managing your Tensor9 BYOC control plane, publishing origin stacks, creating releases, and managing appliances.
Prerequisites
- API key: Follow Get a Tensor9 API key to sign up with Google and download your production API key.
Installation
Homebrew (recommended - macOS and Linux)
brew trust is needed once per machine, including on machines that installed the CLI earlier and now run brew upgrade tensor9.
Shell script
Alternatively, install via the install script:Authenticate
Get your API key, then export it and set up your control plane:~/.tensor9/config.json as your default, so later commands need no API key or profile options.
Updating
Homebrew
Shell script
Run the install script again:T9_INSTALL_DIR, set the same value again when you rerun it.
Uninstallation
Homebrew
Shell script
The shell installer puts the command in~/.tensor9/bin/tensor9 by default. If you chose a custom T9_INSTALL_DIR when installing, use that directory instead.
For the default installation, confirm that this is the launcher installed by the shell script, then remove only that file:
~/.tensor9/bin entry that the installer added to your shell’s PATH, then open a new terminal. For a custom installation, remove its corresponding bin entry instead.
Keep your account configuration, profiles and enrolled identity so you can use them if you reinstall. Do not delete the whole ~/.tensor9 directory.
This removes the command while retaining its bundled Java runtime and downloaded jars. Those files may share the installation directory with other Tensor9 tools. If you need to reclaim that space, contact Tensor9 to identify which runtime files belong only to this installation before removing them.
Platform support
The tensor9 CLI is supported on:- macOS (Apple Silicon and Intel)
- Linux (arm64 and amd64)
Windows users can use the CLI through WSL (Windows Subsystem for Linux).
Environment variables
Common installation issues
Command not found after installation
Command not found after installation
Problem: For Homebrew on Apple Silicon, the default path is
tensor9: command not found after installation.Solution: If installed via Homebrew, try opening a new terminal. If the issue persists, ensure the Homebrew bin directory is in your PATH:/opt/homebrew/bin. For Intel Macs and Linux, it is /usr/local/bin.API key errors
API key errors
Problem: “API key required” or authentication errors.Solution:
- Run
tensor9 whoami. After control-plane setup, it reports your vendor through your default controller profile. - Before control-plane setup, export your key again as described in Export your API key.
- Do not print the key or store it in a shell profile. Contact [email protected] if authentication still fails.
What’s next?
After installing the CLI:- Set up your control plane: Follow the Quick Start guide
- Learn common workflows: See Common Workflows for typical tasks
- Reference documentation: Check the CLI Reference for all commands
Getting help
If you encounter issues:- Run
tensor9 helpto see available commands - Run
tensor9 <command> -helpfor command-specific help - Contact support at [email protected]