Skip to main content
The Pragma CLI provides declarative resource management for data infrastructure.

Command Groups

CommandDescription
pragma resourcesManage resources
pragma authAuthentication
pragma configConfiguration
pragma providersProvider development
pragma opsOperations

Global Options

These options can be used with any command.

Context and Authentication

OptionEnvironment VariableDescription
--context / -cPRAGMA_CONTEXTUse a specific configuration context
--token / -t-Override authentication token for this command
# Use production context for this command
pragma resources list --context production

# Or set via environment
PRAGMA_CONTEXT=production pragma resources list
See Authentication for more on contexts.

Output Format

Many commands support the --output / -o flag for structured output:
FormatDescription
tableHuman-readable table (default)
jsonJSON for scripting and automation
yamlYAML format
# List resources as JSON
pragma resources list --output json

# Get resource details as YAML
pragma resources get gcp/storage my-bucket -o yaml
This is useful for scripting and piping output to other tools like jq:
pragma resources list -o json | jq '.[] | select(.status == "ready")'

Getting Started

# Install
pip install pragmatiks-cli

# Authenticate
pragma auth login

# Apply a resource
pragma resources apply myresource.yaml

# List resources
pragma resources list

Next Steps