tensor9 CLI is the primary tool for managing your Tensor9 control plane, publishing origin stacks, creating releases, and managing appliances.
Prerequisites
Before installing the tensor9 CLI, ensure you have:- Java 17 or later: The tensor9 CLI requires Java to run
- API Key: Request an API key by emailing [email protected]
- AWS Account (for AWS deployments): A dedicated AWS account for your Tensor9 control plane
Installation
Step 1: Download and install
Run the following command to download and install the tensor9 CLI:- Downloads the latest version of tensor9
- Makes it executable
- Installs it to
/usr/local/bin/so it’s accessible from anywhere
Step 2: Verify installation
Confirm the installation was successful:Step 3: 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:Step 4: Verify authentication
Test that your API key works:Updating
Update to the latest version of the tensor9 CLI:Uninstallation
To uninstall the tensor9 CLI:Installation locations
The tensor9 CLI installs files to:/usr/local/bin/tensor9: The main CLI executable~/.tensor9/: Configuration and cache directory
Platform support
The tensor9 CLI is supported on:- Linux (x86_64)
- macOS (Intel and Apple Silicon)
Windows users can use the CLI through WSL (Windows Subsystem for Linux).
Verifying Java installation
The tensor9 CLI requires Java 17 or later. Check your Java version:macOS (using Homebrew)
Ubuntu/Debian
CentOS/RHEL
Environment variables
The tensor9 CLI uses these environment variables:| Variable | Description | Required |
|---|---|---|
T9_API_KEY | Your Tensor9 API key | Yes (for most commands) |
Common installation issues
Permission denied when installing
Permission denied when installing
Problem: Add the
sudo tensor9 install fails with permission errors.Solution: Ensure you have sudo privileges. If you can’t use sudo, install to a local directory:export PATH line to your shell profile for persistence.Java not found
Java not found
Problem: Error message about Java not being found.Solution: Install Java 17 or later following the platform-specific instructions above, then verify:
Command not found after installation
Command not found after installation
Problem: If not, add it to your shell profile:
tensor9: command not found after installation.Solution: Ensure /usr/local/bin is in your PATH: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 env - 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 [email protected]