tanvrit-compute
The CLI is the primary interface for submitting jobs, managing agents, and switching workspaces. Versioned semver — breaking flags trigger a major version bump and a deprecation note 90 days ahead.
Install
curl -L https://compute.tanvrit.com/install.sh | shReady
brew install tanvrit/tap/computePhase 2
# .msi and .deb at # artifacts.tanvrit.com/compute/<ver>Phase 2
Global flags
| Flag | Description |
|---|---|
| --json | Emit machine-readable JSON instead of human output. |
| --verbose / -v | Verbose tracing (HTTP requests, retries). |
| --workspace <name> | Override the active workspace for one command. |
| --target <local|cloud> | Pin the control-plane target. Default: local. |
| --no-color | Disable ANSI colour codes. |
| --version | Print CLI version and exit. |
Auth
Browser device-code OAuth flow; caches token in OS keychain.
tanvrit-compute auth login
Open https://compute.tanvrit.com/auth/device?code=BX-9K2-PQM ... Logged in as you@example.com
Print the current bearer token (use for scripting; rotates with refresh).
tanvrit-compute auth print-token
tnv_pat_01jt5...redacted
Forget the cached token; agent stops accepting work.
tanvrit-compute auth logout
Logged out. Token removed from keychain.
Jobs
Submit a Job manifest (YAML or JSON).
tanvrit-compute jobs run hello-world.yaml
● Submitted job_01jt9hello ✓ SUCCESS 0.42s · exit 0
Print state, exit code, runtime, and assigned agent.
tanvrit-compute jobs status job_01jt9hello
state: SUCCEEDED · exit 0 · runtime 0.42s · agent local-01
Tail the log buffer; --follow streams live via SSE.
tanvrit-compute jobs logs job_01jt9hello --follow
hello from tanvrit-compute [stream closed]
Send SIGTERM, then SIGKILL after grace period (default 30s).
tanvrit-compute jobs cancel job_01jt9hello
Cancelling job_01jt9hello ... cancelled (state: CANCELLED)
List recent jobs in the active workspace; filter by state.
tanvrit-compute jobs list --state=running --json
[{"id":"job_01jt...","state":"RUNNING","agent":"local-01"}]Agents
Show registered agents in the active workspace.
tanvrit-compute agents list
ID STATE LABELS local-01 ONLINE os=darwin,arch=arm64
Install the desktop agent as a launchd / systemd / Windows service.
tanvrit-compute agents install --auto-start
Installed agent service (launchd com.tanvrit.compute.agent). Started. State: ONLINE.
Run an agent in the foreground (useful for development and Steps 1-5 of the quickstart).
tanvrit-compute agent run --workspace local
agent: ready — listening for jobs
Workspaces
Create a new workspace; you become its owner.
tanvrit-compute workspaces create acme-prod
Created workspace acme-prod (ws_01jt...). You are owner.
Set the active workspace for subsequent commands.
tanvrit-compute workspaces switch acme-prod
Active workspace: acme-prod
Show all workspaces you have access to.
tanvrit-compute workspaces list --json
[{"id":"ws_01jt...","name":"local","role":"owner"}]Config
Open ~/.tanvrit/compute.yaml in $EDITOR.
tanvrit-compute config edit
(opens $EDITOR with the active config)
Print a single config value (dot notation).
tanvrit-compute config get default.workspace
local
Versioning
The CLI is versioned semver. Breaking flags trigger a major version bump and a deprecation note 90 days ahead. Output formats stable inside a major version. JSON output (--json) is the contract for scripting; human-formatted text is best-effort. See changelog.