CLI Reference

The Terrantula CLI (terrantula) is the primary interface for importing Terraform and Atmos state, running the local dashboard, and managing your project configuration.

Global Options

These options apply to all commands:

FlagDescription
--base-url <url>API base URL (overrides config)
--token <token>API token (overrides config)
--org <id>Org ID (slug) for org/project-scoped commands (overrides config)
--project <id>Project ID for project-scoped commands (overrides config)
--jsonOutput raw JSON (default: pretty JSON)

Commands

CommandDescription
loginSave API credentials — token to the OS keyring, base URL to the config file (token comes from --token or TERRANTULA_TOKEN)
useSet the default project for project-scoped commands
importImport data from external sources
import-terraformImport Terraform state (alias for import terraform)
onboardZero-config on-ramp: read Terraform, infer the catalog, apply it, and wait for the graph. A directory is read as a Terraform checkout and/or a tree of state files; a file or an s3://|tfc:// URI is read as one state.
syncRe-read Terraform state, re-record observations, and report what the evaluation changed
import-atmosImport Atmos stack manifests into Terrantula as entities
convertConvert legacy configuration into catalog declarations
spinSpin up a fleet control plane from a blueprint: create a local project, apply its catalog, then deliver the skeleton IaC — scaffolded locally, or as a ready-to-merge PR into a target repo via --pr-into (your CI applies — Terrantula never runs terraform apply)
dashboardOpen the local Terrantula dashboard in your browser
exportDump the project catalog (schema + entities + relationships) as apply-shaped YAML
orgsManage orgs
projectsManage projects
githubManage github
blueprintsManage blueprints
entitiesManage entities
membershipManage membership
placementManage placement
relationshipsManage relationships
actionsManage actions
action-runsManage action-runs
secretsManage secrets
applyapply
observationsManage observations
reconcileManage reconcile
discoveryManage discovery
catalogManage catalog
catalog-revisionsManage catalog-revisions
audit-eventsManage audit-events
drift-eventsManage drift-events
conformance-findingsManage conformance-findings
statsManage stats
graph-viewsManage graph-views
notificationsManage notifications
audit-exportManage audit-export
user-preferencesManage user-preferences
import-sourcesManage import-sources
resolve-sourceresolve-source
export-catalogExport every catalog kind as a single apply-shaped payload
adminManage admin
projectProject-level commands