This article provides a step by step instruction on how to install the CLI with apt and yum.
Installing the Crusoe CLI with apt
1. On a Linux instance, run the following commands as the root user:
echo "deb [trusted=yes] https://apt.fury.io/crusoe/ * *" > /etc/apt/sources.list.d/fury.list
sudo apt update
sudo apt install crusoe
2. To upgrade to a newer version of the CLI, run:
sudo apt upgrade crusoe
Installing the Crusoe CLI with yum
1. Download the latest .rpm file correlating to the latest version release here
2. On a Linux instance, run the follow command to install:
sudo yum install <path_to_crusoe_rpm_.rpm>
3. To upgrade to a new version of the CLI, you'll need to download the latest .rpm file, then run the install command.
Verifying the Crusoe CLI
1. Confirm the Crusoe CLI is installed by running:
crusoe -v
Expected output as of March 31, 2025:
crusoe version v0.31.7
Configure the CLI using a config file
1. Run the following commands to set up a default configuration for the CLI to use:
crusoe config set default_project <project_name>
crusoe config set access_key_id <access_key_id>
crusoe config set secret_key <secret_key>
Configure the CLI using environment variables
1. To configure the CLI without a config file, set equivalent environment variables:
CRUSOE_DEFAULT_PROJECT=$project_name
CRUSOE_ACCESS_KEY_ID=$access_key
CRUSOE_SECRET_KEY=$secret_key
Comments
0 comments
Please sign in to leave a comment.