The @sprintra/cli package provides 23 commands for managing your project directly from the terminal. Works with both local and cloud Sprintra.
npm install -g @sprintra/cli # Or run directly with npx npx @sprintra/cli context
| Flag | Default | Description |
|---|---|---|
| -p, --project <id> | auto | Project ID (auto-detected from SPRINTRA_PROJECT env var) |
| -f, --format <format> | pretty | Output format: json or pretty |
| -V, --version | — | Show version number |
sprintra loginAuthenticate with Sprintra. Opens browser OAuth or accepts a pasted token.
sprintra login
sprintra logoutClear stored credentials and disconnect from Sprintra.
sprintra logout
sprintra whoamiShow the currently authenticated user and organization.
sprintra whoami
sprintra token createCreate a new personal access token for MCP or API use.
sprintra token create <name>
$ sprintra token create my-cursor-token Token created: spt_abc123... Copy this token — it won't be shown again.
sprintra token listList all personal access tokens for your account.
sprintra token list
sprintra token revokeRevoke a personal access token by ID.
sprintra token revoke <id>
sprintra loginAuthenticate with Sprintra. Stores a token at ~/.sprintra/config.json. Run once per machine — the SessionStart hook reads from this file to call the briefing endpoint.
sprintra login
$ sprintra login Sprintra Login Option 1: Paste an MCP token from app.sprintra.io/agents Option 2: Press Enter to open browser for login Token (or Enter for browser): vp_<…> ✓ Authenticated. Token saved to ~/.sprintra/config.json
sprintra linkBind the current directory to a Sprintra project. Writes .sprintra/project.json — the SessionStart hook walks up from cwd to find this marker so it knows which project's briefing to fetch. Run once per repo.
sprintra link --project=<id> [--project-key=<key>] [--path=<dir>] [--force]
$ sprintra link --project=proj-XXXXXXXX --project-key=YOURKEY ✓ Created marker at /your/repo/.sprintra/project.json
sprintra plugin install (deprecated)DEPRECATED. Wrote a hooks.json that Claude Code never read. Use Claude Code's native /plugin install instead: /plugin marketplace add Sprintra-io/sprintra-mcp then /plugin install sprintra@sprintra.
(do not use — does nothing useful)
sprintra connectAuto-configure MCP in your AI tool (Claude Code, Cursor, Claude Desktop). Use this if you only need the MCP wiring, not the full plugin (SessionStart hook).
sprintra connect
$ sprintra connect Detected: Claude Code Updated: ~/.claude.json MCP server configured. Restart Claude Code to activate.
sprintra mcpStart the MCP proxy server on stdio. Used internally by AI tools — you rarely need to run this directly.
sprintra mcp
sprintra orgsList organizations you belong to.
sprintra orgs
sprintra projectsList all projects in your organization.
sprintra projects
sprintra featuresList features for a project.
sprintra features [--status <status>]
| -s, --status | Filter by status (idea, backlog, todo, in_progress, done, archived) |
sprintra storiesList stories for a project.
sprintra stories [--feature <id>] [--status <status>]
| --feature | Filter by feature ID |
| -s, --status | Filter by status (todo, in_progress, done) |
sprintra sprintsList sprints for a project.
sprintra sprints
sprintra decisionsList architecture decisions (ADRs).
sprintra decisions
sprintra activityRecent activity feed.
sprintra activity [--limit <n>]
| -l, --limit | Max entries (default: 20) |
sprintra contextFull project snapshot — sprint, stories, decisions, blockers, session, stats.
sprintra context
$ sprintra context
Sprintra [active]
AI-native project management tool
Sprint: Sprint 14 — Session Replay
Progress: 12/18 stories (67%)
Ends: 2026-03-21
In Progress (3):
s-abc123 Payment webhook handler Payments
s-def456 Auth middleware refactor Authentication
Stats: 61/70 features | 340/380 storiessprintra next-workRecommended next story to work on, with full context and readiness score.
sprintra next-work
Alias: next
$ sprintra next-work
Next: Implement Stripe webhook signature verification
ID: s-ghi789 Type: story Points: 3
Readiness: 85%
Feature: Payment Integration [high]
Acceptance Criteria:
- Verify webhook signatures using Stripe SDK
- Handle duplicate events idempotently
- Log failed verifications to Sentrysprintra briefingCompact project state summary optimized for AI context windows (<500 tokens).
sprintra briefing
sprintra deltaShow changes since your last session — new stories, status updates, decisions, and activity.
sprintra delta
sprintra statusShow connection status and server info.
sprintra status
$ sprintra status Sprintra CLI v0.4.1 Server: https://api.sprintra.io Mode: production Status: ok DB: ok (3ms) Token: set Project: proj-XXXXXXXX
| Variable | Default | Description |
|---|---|---|
| SPRINTRA_TOKEN | — | API token for Sprintra Cloud authentication |
| SPRINTRA_PROJECT | — | Default project ID (avoids --project flag on every command) |
| SPRINTRA_URL | auto | Override API URL (auto-detects local vs cloud) |
The CLI automatically detects which server to connect to:
Check SPRINTRA_URL
If set, use that URL directly
Probe local server
Check if http://127.0.0.1:4000 is running (1s timeout)
Fall back to Sprintra Cloud
Connect to https://api.sprintra.io (requires SPRINTRA_TOKEN)
Use --format json to get machine-readable output. This is useful when other AI agents or scripts consume the CLI output.
$ sprintra context --format json | jq '.current_sprint.name' "Sprint 14 — Session Replay" $ sprintra stories --status todo --format json | jq '.[].title' "Implement webhook handler" "Add rate limiting" "Write integration tests"
Set the SPRINTRA_PROJECT env var or pass --project <id> on every command:
export SPRINTRA_PROJECT=proj-abc123 # or sprintra context --project proj-abc123
Set your SPRINTRA_TOKEN env var. Generate a token from the MCP Tokens page in the Sprintra dashboard.
The CLI couldn't reach any Sprintra server. Check that the local server is running (sprintra start) or that you have internet access for Sprintra Cloud.