tensor9 CLI is the primary tool for managing your Tensor9 control plane, publishing origin stacks, creating releases, and managing appliances.
Prerequisites
- API Key: Your Tensor9 API key (provided during onboarding, or email hello@tensor9.com)
Installation
Homebrew (recommended - macOS and Linux)
Shell script
Alternatively, install via the install script:Set your API key
Set your Tensor9 API key as an environment variable:Add this to your shell profile (
~/.bashrc, ~/.zshrc, etc.) to persist it across sessions:Verify installation
Updating
Homebrew
Manual update
Uninstallation
Homebrew
Manual
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
| Variable | Description | Required |
|---|---|---|
T9_API_KEY | Your Tensor9 API key | Yes (for most commands) |
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:
- Verify your API key is set:
echo $T9_API_KEY - If empty, set it:
export T9_API_KEY=<your-key> - Verify it works:
tensor9 whoami - For persistence, add to your shell profile
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 hello@tensor9.com