Skip to content

Documentation

CLI (Alpha)

The Jetscale command-line interface, in alpha: install it, authenticate, select an account, and script against its JSON output.

The Jetscale CLI is in alpha. Commands, flags, and output shapes may change between releases without a deprecation period. Use it interactively and in scripts you can update; pin an exact version anywhere a change would break something, and do not build a committed workflow on it yet.

jetscale is a standalone command-line tool for operators who prefer a terminal over a dashboard. Today it covers authentication, environment and account selection, configuration, and backend status, with table, JSON, and YAML output for scripting. Commands for working with recommendations from the terminal are planned but not shipped; until they are, query findings through MCP or the dashboard.

Install

Releases are published on the GitHub releases page with a Homebrew tap:

brew install jetscale-ai/tap/jetscale

If the tap or a release binary is not accessible to you, or you want the current development state, build from source (Go and mage required):

git clone https://github.com/Jetscale-ai/cli
cd cli
go install github.com/magefile/mage@latest
mage build        # → bin/jetscale

Confirm the install with jetscale version.

Authenticate

jetscale auth login      # email + password prompt
jetscale auth whoami     # confirm who you are signed in as
jetscale auth status     # check token validity
jetscale auth logout     # remove the stored token

Tokens are stored per environment under ~/.config/jetscale/. For CI or other headless use, pass a token through the environment instead of storing one:

JETSCALE_TOKEN=<token> jetscale auth status

Select an account

Most operations run against one cloud account at a time:

jetscale accounts list                # discover connected cloud accounts
jetscale accounts use <account-name>  # set the active account
jetscale accounts current             # show the active account

Commands

jetscale auth login|logout|whoami|status     # authentication
jetscale accounts list|use|current           # cloud account selection
jetscale config show|set|get|instances       # CLI configuration
jetscale system info|diagnostics             # backend version and health
jetscale version                             # CLI build metadata

Global flags apply to every command:

-i, --instance <name>   target a named environment
    --api-url <url>     override the API URL directly
    --account <name>    cloud account override for one invocation
-o, --output <format>   table, json, yaml (default: table)

JETSCALE_TOKEN, JETSCALE_API_URL, JETSCALE_INSTANCE, and JETSCALE_ACCOUNT override the stored equivalents, which makes the CLI usable from CI without a config file.

Scripting

Every command supports structured output, so results compose with standard tools:

jetscale auth whoami -o json | jq -r '.email'
jetscale accounts list -o json
jetscale system info -o yaml

While the CLI is alpha, treat field names in JSON and YAML output as unstable: a script that must survive upgrades should assert on the fields it uses and fail loudly when they move.

  • MCP — query accounts, costs, and recommendations from an assistant today.
  • API — the state of programmatic access generally.
  • Recommendation workflow — how findings are reviewed and approved, whatever surface you read them from.

Questions, or a workflow the CLI should support? Write to support@jetscale.ai.