Install the CLI
sf command to your PATH:
Buy VM nodes
After installing the CLI, you can buy reserved nodes varying the number of nodes, duration, and start time as you like.To access your nodes by SSH, you must add your keys in a
startup script or configure your nodes using a cloud-init
user-data file.
Using the API
Generate an API token from the command line:CLI options
Telemetry
The SF Compute CLI collects some usage data. This is enabled by default. To opt out, set theSF_CLI_TELEMETRY_OPTOUT environment variable to 1 or true.
Auto-upgrades
The CLI automatically upgrades if there’s a new patch version. To opt out, set theSF_CLI_DISABLE_AUTO_UPGRADE environment variable to 1 or true.