Skip to content

alegra

alegra

Alegra accounting system CLI

Synopsis

alegra is a command-line interface for the Alegra accounting API (https://developer.alegra.com).

It manages contacts, invoices, items, payments, taxes, and the full Alegra resource surface, with table/json/yaml/csv output, profiles, and a dry-run mode.

Authenticate with: alegra auth login # stores your API token in the OS keyring or set ALEGRA_EMAIL and ALEGRA_TOKEN in the environment.

Options

      --base-url string             Override the API base URL (env: ALEGRA_BASE_URL)
      --columns strings             Comma-separated columns for table/csv output
      --dry-run                     Print the equivalent curl request without sending it
  -h, --help                        help for alegra
      --no-color                    Disable colored output (also respects the NO_COLOR env var)
  -o, --output string               Output format: table, json, yaml, csv (env: ALEGRA_OUTPUT)
      --profile string              Configuration profile to use (env: ALEGRA_PROFILE)
      --requests-per-second float   Client-side rate limit (default from config)
      --show-token                  In --dry-run, do not redact the Authorization header
  -v, --verbose                     Enable verbose (debug) logging to stderr

SEE ALSO