The Latitude CLI helps you work locally with your latitud prompts. Initialize projects, pull/push prompt changes, switch versions, and manage authentication — all from the command line.

Key Capabilities

  • Initialize a project and create latitude-lock.json
  • Pull remote prompts locally with safe diff previews
  • Push local prompt changes to a project version
  • Check project status and pending changes
  • Checkout a specific version or create a new one
  • Manage your API key securely

Typical Workflow

  1. Install the CLI and authenticate
  2. Run latitude init inside your repo
  3. Pull prompts: latitude pull
  4. Edit prompts locally
  5. Push changes: latitude push
  6. Switch versions when needed: latitude checkout <versionUuid> or -b <name>