posthook.toml file. The CLI syncs this file with your remote project configuration, enabling version control and repeatable environments.
For detailed documentation on each config section, see Sequences, Project Settings, and Scheduling.
Init
Fetches the current project config from the API and writes it toposthook.toml in the current directory.
~/.posthook/config.json.
Pull
Downloads the remote config and overwrites the local TOML file. Shows a diff and prompts for confirmation before overwriting.--non-interactive: Skip confirmation prompts.
Apply
Pushes local TOML changes to the remote project. Shows a diff and prompts for confirmation before applying.--dry-run: Show changes without applying.--non-interactive: Skip all confirmation prompts.
- Reducing retention (permanently deletes older data)
- Deleting sequences (lists affected sequences by name)
project field, preventing accidental cross-project changes.
Diff
Shows pending local changes without applying them.Status
Displays project info, domain, masked API key, and signing key for the current config. No API call is made.Validate
Checks TOML syntax and schema locally. No API call is made.TOML format
The config file covers project settings, retry behavior, notifications, retention, and sequences.project field (UUID) is required. All other sections are optional and default to your project’s current settings.
Multi-environment configs
Use the--config flag (or -c) to create named config files for different environments.
~/.posthook/config.json.
Common flags
| Flag | Description |
|---|---|
-k, --api-key <key> | Override the stored API key |
-c, --config <name> | Use a named config file (posthook.<name>.toml) |
init, pull, apply, and diff. The status and validate commands only accept -c, --config.