Skip to main content
Manage project settings declaratively with a 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 to posthook.toml in the current directory.
The CLI prompts for your API key (if not already stored) and saves it to ~/.posthook/config.json.

Pull

Downloads the remote config and overwrites the local TOML file. Shows a diff and prompts for confirmation before overwriting.
Options:
  • --non-interactive: Skip confirmation prompts.

Apply

Pushes local TOML changes to the remote project. Shows a diff and prompts for confirmation before applying.
Options:
  • --dry-run: Show changes without applying.
  • --non-interactive: Skip all confirmation prompts.
The CLI prompts for additional confirmation when:
  • Reducing retention (permanently deletes older data)
  • Deleting sequences (lists affected sequences by name)
Apply also verifies that the API key’s project matches the TOML’s 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.
The 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.
Each named config can point to a different project. Credentials are stored per-project in ~/.posthook/config.json.

Common flags

These flags apply to init, pull, apply, and diff. The status and validate commands only accept -c, --config.