Skip to content

CLI Commands Reference

Complete reference for all sprite CLI commands.

These options work with any command:

OptionDescription
--debug[=<file>]Enable debug logging (logs to stdout if no file specified)
-o, --org<name> Specify organization (can be used anywhere)
-s, --sprite<name> Specify sprite (can be used anywhere)
-h, --helpShow this help message

Usage of login:

Terminal window
sprite login

Usage of logout:

Terminal window
sprite logout

Usage of org auth:

Terminal window
sprite org auth

Aliases: sprite orgs, sprite organizations, sprite o

Usage of org list:

Terminal window
sprite org list

Usage of org logout:

Terminal window
sprite org logout

--- Org selector

Terminal window
sprite org keyring disable

--- Org selector

Terminal window
sprite org keyring enable

Usage of auth setup:

Terminal window
sprite auth setup

Usage of create:

Terminal window
sprite create

Usage of use:

Terminal window
sprite use

Usage of list:

Terminal window
sprite list

Aliases: sprite ls

Usage of destroy:

Terminal window
sprite destroy

Usage of exec:

Terminal window
sprite exec

Aliases: sprite x

Usage of console:

Terminal window
sprite console

Aliases: sprite c

Usage of checkpoint create:

Terminal window
sprite checkpoint create

Usage of checkpoint list:

Terminal window
sprite checkpoint list

Aliases: sprite checkpoint ls, sprite checkpoints ls

Usage of checkpoint info:

Terminal window
sprite checkpoint info

Usage of checkpoint delete:

Terminal window
sprite checkpoint delete

Aliases: sprite checkpoint rm

Usage of restore:

Terminal window
sprite restore

Aliases: sprite checkpoint restore

Usage of proxy:

Terminal window
sprite proxy

sprite url - Manage sprite URL settings

Terminal window
sprite url Show sprite URL and auth setting sprite url update [options] Update URL authentication settings URL Format: https://<sprite-name>-<org>.sprites.dev/ Authentication Modes: sprite Allows access via browser to Sprite org members, and via org tokens (default) public No authentication - anyone with URL can access Subcommands: update Update URL authentication settings

Options:

  • -o, --org <name> - Specify organization
  • -s, --sprite <name> - Specify sprite
  • -h, --help Show - this help message
  • --auth <type> - Authentication type: ‘public’ or ‘sprite’

Examples:

Terminal window
sprite url # Show current URL and auth setting
sprite url update --auth public # Make URL publicly accessible
sprite url update --auth sprite # Require org membership (default)
sprite url -o myorg -s mysprite # Show URL for specific sprite
Accessing Authenticated URLs:
Visit the URL in your browser and log in with Fly.io, or use an org token:
curl -H "Authorization: Bearer $SPRITE_API_TOKEN" https://mysprite-myorg.sprites.dev/
Security Notes:
- Public URLs are accessible to anyone on the internet
- Never expose secrets, env vars, or sensitive data via HTTP
- Use 'public' only for demos, webhooks, or truly public services

Usage of url update:

Terminal window
sprite url update

Usage of api:

Terminal window
sprite api

Usage of upgrade:

Terminal window
sprite upgrade
CodeMeaning
0Success
1General error
2Command not found
126Command cannot execute
127Command not found (in sprite)
128+Command terminated by signal
VariableDescription
SPRITE_TOKENAPI token override (legacy; falls back if no stored token)
SPRITE_URLDirect sprite URL (for local/dev direct connections)
SPRITES_API_URLAPI URL override (default: https://api.sprites.dev)

~/.sprites/sprites.json (managed by the CLI; format may evolve):

{
"version": "1",
"current_selection": {
"url": "https://api.sprites.dev",
"org": "personal"
},
"urls": {
"https://api.sprites.dev": {
"url": "https://api.sprites.dev",
"orgs": {
"personal": {
"name": "personal",
"keyring_key": "sprites-cli:<user-id>",
"use_keyring": true,
"sprites": {}
}
}
}
}
}

.sprite (in project directory):

{
"organization": "personal",
"sprite": "my-project-sprite"
}
Installation

Install the Sprites CLI on your platform

Authentication

Set up your Fly.io account and manage tokens

Working with Sprites

Beyond the basics guide

Checkpoints

Save and restore sprite state