Skip to content

CLI

The Skytale CLI handles account creation, API key management, and JWT token exchange. It replaces the curl commands you’d otherwise run against the API.

Build from source:

Terminal window
cd cli && cargo build --release
cp target/release/skytale ~/.cargo/bin/ # or anywhere on your PATH

Verify:

Terminal window
skytale --help

Create an account and save the API key automatically.

Terminal window
skytale signup [email protected]
skytale signup [email protected] --name "Your Name"

The API key is saved to ~/.skytale/api-key (mode 0600). All subsequent commands use it automatically.

Show the current account info.

Terminal window
skytale account
ID: 550e8400-e29b-41d4-a716-446655440000
Name: Your Name
Plan: free

List all active API keys.

Terminal window
skytale keys list
ID PREFIX NAME CREATED
550e8400-e29b-41d4-a716-446655440000 sk_live_a1b2c3d4 default 2026-02-26 14:30

Create a new API key.

Terminal window
skytale keys create --name ci-key

Revoke an API key by ID.

Terminal window
skytale keys revoke 550e8400-e29b-41d4-a716-446655440000

Exchange the API key for a short-lived JWT. Prints the raw token to stdout.

Terminal window
skytale token
eyJhbGciOiJIUzI1NiIs...

Useful for piping into other tools:

Terminal window
export SKYTALE_JWT=$(skytale token)

Show current plan and subscription status.

Terminal window
skytale billing
Plan: pro
Status: active
Renews: 2026-04-01T00:00:00Z

Subscribe to a paid plan. Opens Stripe Checkout in your browser.

Terminal window
skytale billing upgrade pro # $29/mo
skytale billing upgrade team # $99/mo

Open the Stripe billing portal to update payment methods, view invoices, or cancel.

Terminal window
skytale billing portal
SettingFlagEnv varDefault
API URL--api-urlSKYTALE_API_URLhttps://api.skytale.sh
API keySKYTALE_API_KEY~/.skytale/api-key

Precedence: flag > env var > file/default.

Point the CLI at your own API server:

Terminal window
skytale signup [email protected] --api-url http://localhost:3100

Or set it globally:

Terminal window
export SKYTALE_API_URL="http://localhost:3100"
skytale keys list