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
brandIdpath parameter is--brand. - Other path and query parameters and top-level body fields are flags in kebab case:
launchIdis--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
| Flag | What it does |
|---|---|
--api-url <url> | Use another API base URL. Defaults to https://api.koast.ai, or KOAST_API_URL when set. |
--refresh | Download the OpenAPI document again before running. |
--output <json|table> | Output format. Defaults to json. |
--all | Paged 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. |
--help | Help for the CLI or for one command. |
--version | The CLI version. |
--api-key <key|-> | login only: store an API key instead of signing in with a browser. |
--no-browser | login only: print the sign-in URL instead of opening it. |
Built-in commands
| Command | What it does |
|---|---|
koast login | Sign in with a browser, or store an API key with --api-key. |
koast logout | Remove 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
get-team-activity-log: Get team activity log
Ad Accounts
get-account-naming-convention: Get account naming conventionget-account-overview: Get account overviewget-available-options: Get asset and targeting optionslist-account-campaigns: List ad account campaignslist-lead-forms: List lead forms
Automations
delete-automation: Delete automationget-automation: Get automationlist-automations: List automationssave-automation: Save automationset-automation-status: Set automation status
Brands
list-my-ad-accounts: List my ad accounts
Copies
generate-copy: Generate ad copyget-copy: Get generated ad copy
Creatives
list-creatives: List creativesupload-creative: Upload creative
Integrations
connect-clickflare: Connect ClickFlaredisconnect-clickflare: Disconnect ClickFlareget-clickflare-cost-push: Get ClickFlare spend pushget-clickflare-settings: Get ClickFlare settingsget-redtrack-cost-push: Get RedTrack spend pushlist-clickflare-campaign-mappings: List ClickFlare campaign mappingslist-redtrack-campaign-mappings: List RedTrack campaign mappingsupdate-clickflare-campaign-mapping: Update ClickFlare campaign mappingupdate-clickflare-cost-push: Update ClickFlare spend pushupdate-clickflare-settings: Update ClickFlare settingsupdate-redtrack-campaign-mapping: Update RedTrack campaign mappingupdate-redtrack-cost-push: Update RedTrack spend push
Launches
add-ads: Add adsadd-adset: Add ad setadd-campaign: Add campaignapply-snapshot-template: Apply campaign snapshot templateapply-structure-template: Apply structure templateattach-lead-form: Attach lead formclone-live-campaign: Clone live campaigncompute-creative-fatigue: Compute creative fatiguecreate-campaign-launch: Create campaign launchdelete-batch: Delete batch or pipeline carddistribute-creative: Distribute creativeduplicate-and-vary: Duplicate and varyduplicate-node: Duplicate ad set or adedit-live-campaign: Edit live campaign budgetget-ad-delivery-status: Get ad delivery statusget-ad-details: Get ad detailsget-adset-details: Get ad set detailsget-campaign-tree: Get campaign treeget-insights-daily: Get daily insightsget-metrics: Get metricsget-settings: Get settingsget-targeting-options: Get targeting optionsimport-campaigns: Import campaignsimport-live-campaign: Import live campaignlaunch-campaign: Launch campaignlist-koast-batches: List Koast batchesremove-nodes: Remove items from campaign treerename-node: Rename campaign, ad set or adsave-campaign-snapshot: Save campaign snapshot templateswap-creatives: Swap creativesturn-launch-into-template: Turn launch into structure templateupdate-node: Update campaign, ad set or adupdate-settings: Update settingsvalidate-launch: Validate launch
Pipeline
configure-pipeline-column: Configure pipeline columncreate-pipeline-ticket: Create pipeline cardlist-pipeline-columns: List pipeline columnsmove-pipeline-card: Move pipeline card
Snapshot Templates
delete-snapshot-template: Delete campaign snapshot templatelist-snapshot-templates: List campaign snapshot templates
Structure Templates
author-structure-template: Create structure templatedelete-structure-template: Delete structure templateedit-structure-template-rules: Edit structure template rulesget-structure-template: Get structure templatelist-structure-templates: List structure templates
Webhooks
create-webhook-endpoint: Create webhook endpointdelete-webhook-endpoint: Delete webhook endpointenable-webhook-endpoint: Enable webhook endpointget-webhook-endpoint: Get webhook endpointget-webhook-secret: Get webhook secretlist-webhook-deliveries: List webhook deliverieslist-webhook-endpoints: List webhook endpointsresend-failed-webhook-deliveries: Resend failed webhook deliveriesrotate-webhook-secret: Rotate webhook secrettest-webhook-endpoint: Send webhook test eventupdate-webhook-endpoint: Update webhook endpoint
Workflows
delete-workflow: Delete workflowget-workflow: Get workflowget-workflow-execution: Get workflow executionlist-workflows: List workflowsrun-workflow: Run workflowsave-workflow: Save workflowset-workflow-status: Set workflow status