Usage
campi-cli is a command line client for marketing as code.
Synopsis
campi-cli <COMMAND> [ARGS]
Help
Print the main help, or the help of a specific command:
campi-cli --help
campi-cli help
campi-cli help plan
campi-cli plan --help
campi-cli help platform
campi-cli platform meta --helpCredentials
Platform credentials are read from environment variables; see the man page for the full list. A file named .env in the working directory is loaded on every command and takes precedence over variables already set in the session:
cd <WORK_DIR>
cp .env.example .env
# fill in the real values
campi-cli platform metacampi-cli init scaffolds .env.example; .env is ignored by git. Values that are empty or whitespace only count as unset, so leave the entries you do not use empty.
The platform guides walk through obtaining each token and id. For Meta, see docs/platforms/meta.md; for Google Ads, see docs/platforms/google.md.
Dry run
Commands that change files run in dry run mode by default; they report what would change without touching anything. Pass -w / --write to persist the changes. Dry run is the default so that reviewable, version controlled campaigns stay reproducible.
Exit codes
0- success1- runtime failure2- usage failure3- pending updates;plan/applyin dry run computed changes that would be applied