Skip to content

CLI Reference

The shipd CLI is the primary interface for config-as-code workflows. Every command works non-interactively (for CI) and supports --json output.

Authenticate with the service.

Command Description
shipd auth login Browser-based login (device flow)
shipd auth logout Clear stored credentials

Regenerate shipd.config.ts from the current server state.

Plan and apply local flag definitions to the server. Always shows a plan before applying; fails on conflicts with dashboard edits since your last pull.

Show drift between local definitions and server state without applying.

Generate TypeScript types for the runtime SDK from server state.

Precedence (highest wins):

  1. CLI flags
  2. Environment variables
  3. Project config file
  4. Global config file
Code Meaning
0 Success
1 General error
2 Conflict (stale base on push)