@dcard/ads-console-cli
v1.38.7
Published
Command-line interface for the Dcard Ads Console — authenticate and manage campaigns, ad sets, creatives, media uploads, and reports.
Readme
@dcard/ads-console-cli
Command-line interface for the Dcard Ads Console — authenticate once, then manage campaigns, ad sets, creatives, media uploads and reports from your terminal.
Install
npm install -g @dcard/ads-console-cli
# or run without installing
npx @dcard/ads-console-cli --helpThe binary is dcard-ads.
Getting started
# Sign in (opens a browser for OAuth)
dcard-ads login
# Show the current session / selected account
dcard-ads status
# Pick the account to operate on
dcard-ads config set-account
# Sign out
dcard-ads logoutCommands
| Area | Commands |
| --------- | ------------------------------------------ |
| Auth | login, logout, status |
| Config | config set-account |
| Accounts | accounts list, accounts get |
| Members | members list |
| Campaigns | campaigns list/get/create/update/archive |
| Ad sets | adsets list/get/create/update |
| Creatives | creatives list/get/create/update |
| Media | media upload-image, media upload-video |
| Reports | reports export |
Run dcard-ads <command> --help for the options of any command.
Environment
Set ADS_CONSOLE_ENV to target a non-default environment (e.g. staging);
it defaults to production.
