@adkit/cli

中文文档
1.13.57发布于 2026/11/07ES Module近 30 天下载 2405

The Ads CLI for AI agents — manage Meta & Google ad campaigns, browse the ad library, and generate creatives from your terminal.

原始使用文档
文档目录11 节
  1. Installation
  2. Authentication
  3. Commands
  4. Projects
  5. Ad Library
  6. Studio
  7. Meta (Facebook / Instagram)
  8. Google Ads
  9. Global Flags
  10. Agent / Programmatic Use
  11. More

AdKit — the Ads CLI for AI agents

The Ads CLI for AI agents and humans. Manage Meta & Google ad campaigns, browse the ad library, and generate creatives — all from your terminal. Part of AdKit.

Installation

npm install -g @adkit/cli

The installed command is adkit.

Authentication

adkit setup

Opens a browser to connect your AdKit account. Your API key is stored locally.

Commands

adkit status                  Show current project and connected accounts
adkit setup                   Authenticate (opens browser)
adkit projects                Manage projects
adkit library                 Browse the ad library
adkit studio                  Create and manage Studio ads
adkit manage                  Manage live campaigns on Meta and Google
adkit logout                  Remove stored credentials

Projects

adkit projects list
adkit projects create --name "Example" --website example.com
adkit projects use <id>
adkit projects current

Ad Library

Browse the shared ad library or your project’s My Watchlist. add finds or creates an advertiser and saves it to that project; track and untrack change membership for an existing ID. Repeating either is safe. Untracking keeps the shared advertiser and other projects intact.

adkit library advertisers list --scope watchlist --project <project-id>
adkit library advertisers search "notion" --scope watchlist --project <project-id>
adkit library advertisers add --website notion.so --project <project-id>
adkit library advertisers track <id> --project <project-id>
adkit library advertisers untrack <id> --project <project-id>
adkit library advertisers search "notion" --platform meta
adkit library advertisers <id>
adkit library advertisers similar --industry saas
adkit library ads list --advertiser <id>
adkit library ads <id>

Omit --scope (or use --scope library) for the whole library. List/search default to newest first; use --sort name for alphabetical order. Use --json for automation.

Studio

Create and manage AI-generated ads.

adkit studio ads list
adkit studio ads generate --ref media:<id> --mode clone
adkit studio ads <id>
adkit studio media upload ./banner.png
adkit studio media list <ad-id>

Meta (Facebook / Instagram)

Accounts

adkit manage meta accounts list
adkit manage meta accounts connect
adkit manage meta accounts disconnect <id>

Campaigns

adkit manage meta campaigns list
adkit manage meta campaigns create --name "Spring Sale" --objective sales --budget-daily 50 --publish
adkit manage meta campaigns update <id> --status paused
adkit manage meta campaigns delete <id>
adkit manage meta campaigns <id>

Ad Sets

adkit manage meta adsets list
adkit manage meta adsets create --campaign <id> --name "US Broad" \
  --optimization conversions --conversion-goals purchase --countries US --budget-daily 20 --publish
adkit manage meta adsets update <id> --budget-daily 50
adkit manage meta adsets delete <id>

Ads

adkit manage meta ads list
adkit manage meta ads create --adset <id> --media ./image.jpg \
  --primary-text "Try it free" --headline "AdKit" --cta sign_up --url https://example.com --publish
adkit manage meta ads create --adset <id> \
  --media ./feed.jpg --media ./story.mp4 --media-format default --media-format vertical \
  --primary-text "Try it free" --headline "AdKit" --url https://example.com --publish
adkit manage meta ads update <id> --status paused
adkit manage meta ads delete <id>
adkit manage meta ads <id>

Results & Research

adkit manage meta results                        # Spend, clicks, conversions
adkit manage meta research interests "saas tools"
adkit manage meta pages list
adkit manage meta pixels list

Drafts

adkit manage drafts list
adkit manage drafts <id>
adkit manage drafts publish <id>
adkit manage drafts delete <id>

Google Ads

Accounts

adkit manage google accounts list
adkit manage google accounts connect
adkit manage google accounts disconnect <id>

Campaigns

adkit manage google campaigns list --account <id>
adkit manage google campaigns create --name "Search Test" --campaign-type search --budget-daily 5 --account <id> --publish
adkit manage google campaigns update <id> --status paused --account <id>
adkit manage google campaigns delete <id> --account <id>

Ad Groups, Ads, Keywords

adkit manage google ad-groups list --campaign <id> --account <id>
adkit manage google ads list --ad-group <id> --account <id>
adkit manage google keywords list --ad-group <id> --account <id>
adkit manage google keywords add --ad-group <id> --text "project management software" --match-type broad --account <id>
adkit manage google negative-keywords add --campaign <id> --text "free" --account <id>

Assets (callouts, sitelinks, snippets, call extensions)

adkit manage google assets list --type callout --account <id>
adkit manage google assets create --type callout --text "Free 14-day trial" --account <id>
adkit manage google assets create --type sitelink --sitelink "Pricing|https://example.com/pricing" \
  --description-1 "See all plans" --description-2 "Starts free" --account <id>
adkit manage google assets create --type call --country-code US --phone-number "+14155551234" --account <id>
adkit manage google assets attach asset:<id> --type callout --scope campaign --scope-id <id> --account <id>

Results & Research

adkit manage google results --account <id>
adkit manage google search-terms --account <id>
adkit manage google research keywords "project management" --account <id>

Global Flags

--json        Force JSON output (default when stdout is not a TTY)
--project     Override the active project for this command
--help        Show help  (--help full for complete field reference)

Agent / Programmatic Use

All commands output JSON automatically when stdout is not a TTY, making adkit easy to use from AI agents or scripts:

adkit manage meta campaigns list --json | jq '.[].name'

Create items as drafts (default) and publish in a separate step, or pass --publish to go live immediately.

More

版本与发布记录

@adkit/cli 共发布 84 个版本,首次发布于 2026/06/07;过去 12 个月发布了 84 个版本。

版本发布日期距今
1.13.57latest2026/11/07今天
1.13.562026/10/2810 天前
1.13.552026/10/2711 天前
1.13.542026/10/2018 天前
1.13.532026/10/1622 天前
1.13.522026/10/1028 天前

关于 @adkit/cli 的常见问题

@adkit/cli 是什么?

The Ads CLI for AI agents — manage Meta & Google ad campaigns, browse the ad library, and generate creatives from your terminal.

如何安装 @adkit/cli?

在项目目录运行 npm install @adkit/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 adkit,可以用 npx adkit 直接运行。

@adkit/cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/adkit__cli 是否存在。

@adkit/cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@adkit/cli 可以商用吗?

@adkit/cli 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@adkit/cli 的下载量有多少?

根据 npm 官方下载统计,@adkit/cli 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,405 次,日均约 80 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adkit/cli 还在维护吗?

最新版本 1.13.57 发布于 2026/11/07(今天);至今共发布 84 个版本,其中过去 12 个月发布了 84 个;首次发布于 2026/06/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。