CLI
Installing Tensor One CLI
You can use tensoronecli to work with Clusters and Tensor One projects.
When you create a Cluster, it comes with tensoronecli installed and configured with a Cluster-scoped API key. You can also run tensoronecli locally.
To install tensoronecli on your local machine, run the appropriate command for your operating system.
Linux & MacOS
wget -qO- cli.tpu.one | sudo bash
Windows
wget https://cli.tpu.one/tensoronecli-windows-amd64.exe -O tensoronecli.exe
Configuring tensoronecli
Before you can use tensoronecli, you must configure an API key. To create a new API key, complete the following steps:
- In the web interface, go to your Settings.
- Expand API Keys and click the + API Key button.
- Select Read or Read & Write permissions.
- Click Create.
Note Keep your API key secret. Anyone with the key can gain full access to your account.
Now that you've created an API key, run the following command to add it to tensoronecli:
tensoronecli config --apiKey your-api-key
You should see something similar to the following output:
saved apiKey into config file: /Users/tensorone/.tensorone/config.toml
Now that you've configured an API key, check that tensoronecli installed successfully. Run the following command:
tensoronecli l version
You should see which version is installed.
tensoronecli l v1.13.0
If at any point you need help with a command, you can use the --help
flag to see documentation on the command you're running.
tensoronecli l --help