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.

Install

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

Commands

skytale signup

Create an account and save the API key automatically.

Terminal window
skytale signup you@example.com
skytale signup you@example.com --name "Your Name"

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

skytale account

Show the current account info.

Terminal window
skytale account
ID: 550e8400-e29b-41d4-a716-446655440000
Email: you@example.com
Name: Your Name
Plan: free

skytale keys list

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

skytale keys create

Create a new API key.

Terminal window
skytale keys create
skytale keys create --name ci-key

skytale keys revoke

Revoke an API key by ID.

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

skytale token

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)

Configuration

SettingFlagEnv varDefault
API URL--api-urlSKYTALE_API_URLhttps://api.skytale.sh
API keySKYTALE_API_KEY~/.skytale/api-key

Precedence: flag > env var > file/default.

Self-hosted

Point the CLI at your own API server:

Terminal window
skytale signup you@example.com --api-url http://localhost:3100

Or set it globally:

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