CLI
The natural-api CLI maps every API endpoint to a terminal command. Use it for scripting, CI pipelines, or when you prefer the command line over an SDK.
Install
Install the Rust toolchain if you don’t have it, then build from source:
Authenticate
Set the NATURAL_API_TOKEN environment variable. The CLI also auto-loads a .env file in the working directory.
Usage
Every Natural resource appears as a subcommand. Pass request bodies with individual --data.attributes.* flags or --json:
Use natural-api --help or natural-api <command> --help for full option details.
Dry run
The --dry-run flag renders the exact HTTP request the CLI would send, without executing it. Useful for scripting and agent workflows:
Output formats
Use the --format flag to control output. Supported values: json (default), table, yaml, csv.
Environment variables
Shell completion
Generate shell completion scripts: