sota.io

CLI Overview

The sota command-line tool wraps the sota.io REST API for terminal-native workflows. Deploy, manage, and debug your applications without leaving the terminal.

The CLI is open source: GitHub | Releases

Commands

CommandDescription
sota loginAuthenticate with your sota.io account via browser
sota auth set-keyStore an API key for authentication
sota auth statusShow current authentication status
sota deployDeploy the current project
sota logsView build and runtime logs
sota envManage environment variables
sota rollbackRevert to the previous deployment
sota statusShow current deployment status
sota projects listList all your projects

Global Flags

FlagDescription
--helpShow help for any command
--versionShow CLI version

Project Linking

When you first run sota deploy in a directory, the CLI creates a .sota.json file that links the directory to a sota.io project. Subsequent commands in that directory automatically target the linked project.

{
  "project_id": "550e8400-e29b-41d4-a716-446655440000",
  "project_slug": "my-app"
}

Authentication

The CLI supports three authentication methods, checked in this order:

  1. SOTA_API_KEY environment variable — best for CI/CD pipelines
  2. Stored API key — set with sota auth set-key <key>
  3. Browser login — interactive OAuth via sota login

Get your API key from the dashboard settings or create one via the API.

Output

The CLI uses colored output by default. Set NO_COLOR=1 to disable colors for CI environments.