The Terrantula CLI (terrantula) is the primary interface for the first-five-minutes onboarding flow and ongoing platform operations. It connects to either a self-hosted Terrantula API server or runs in local-only mode via terrantula dashboard.
Verify:
Authenticate against a self-hosted Terrantula API server:
The token and base URL are saved to ~/.config/terrantula/config.json (permissions: 600). Subsequent commands pick them up automatically.
Override per-invocation:
Or via environment variables:
All commands accept these global flags:
| Flag | Description |
|---|---|
--base-url <url> | API base URL (overrides config) |
--token <token> | API token (overrides config) |
--org <id> | Org ID (slug) for org/project-scoped commands |
--project <id> | Project ID for project-scoped commands |
--env <name> | Environment name (defaults to default) |
--json | Output raw JSON instead of pretty JSON |
See the generated command reference for a full listing of every command with its flags and examples.
Core commands:
| Command | Description |
|---|---|
login | Save API credentials to local config |
use | Set the default project for project-scoped commands |
dashboard | Open the local Terrantula dashboard in your browser |
import terraform | Import Terraform state into Terrantula as entities and relationships |
import-atmos | Import Atmos stack manifests into Terrantula as entities |
export | Dump the project catalog as apply-shaped YAML |
project nuke | Drop all project-scoped runtime and catalog rows |