CLI commands

CLI commands

The 91 koast CLI commands, generated from the API operations, with their flags and an example each.

The koast CLI turns each API operation into a command named by its operationId. Install and sign in as the CLI guide explains.

Flag naming

  • The brandId path parameter is --brand.
  • Other path and query parameters and top-level body fields are flags in kebab case: launchId is --launch-id.
  • Path parameters are required. An array flag is repeatable or takes a JSON array. An object flag takes JSON.
  • A boolean flag with no value means true.
  • --json <file|-> gives the whole request body. Body flags are applied over it.

Global flags

FlagWhat it does
--api-url <url>Use another API base URL. Defaults to https://api.koast.ai, or KOAST_API_URL when set.
--refreshDownload the OpenAPI document again before running.
--output <json|table>Output format. Defaults to json.
--allPaged commands only: follow every page and print one JSON line per item.
--idempotency-key <key>Send this Idempotency-Key.
--json <file|->The request body as JSON, from a file or stdin. Body flags are applied over it.
--helpHelp for the CLI or for one command.
--versionThe CLI version.
--api-key <key|->login only: store an API key instead of signing in with a browser.
--no-browserlogin only: print the sign-in URL instead of opening it.

Built-in commands

CommandWhat it does
koast loginSign in with a browser, or store an API key with --api-key.
koast logoutRemove the stored credential for the current API URL.
koast help [command]Help for the CLI or for one command.
koast commands [--output json]List every command, grouped by tag.

Commands by tag

Activity

Ad Accounts

Automations

Brands

Copies

Creatives

Integrations

Launches

Pipeline

Snapshot Templates

Structure Templates

Webhooks

Workflows

On this page