npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bluevs/vhcli-google-ads

v0.0.3

Published

Google Ads CLI — designed for AI agents and developers

Downloads

247

Readme

@bluevs/vhcli-google-ads

English | 中文


English

Google Ads API CLI — designed for AI agents and developers.

Installation

npm install -g @bluevs/vhcli-google-ads

Authentication

Tokens are issued by vhcli (Vision Hub CLI). You do not need to handle access tokens directly.

# Fetch a token via vhcli and pass it to gcli
TOKEN=$(vhcli project account-token \
  --customer-project-id=<PROJECT_ID> \
  --account-id=<CUSTOMER_ID> \
  --format=json | jq -r .access_token)

gcli --token="$TOKEN" --customer-id=<CUSTOMER_ID> auth show

Or persist credentials for repeated use:

gcli auth set --token="$TOKEN" --customer-id=<CUSTOMER_ID>

Usage

gcli [command] [flags]

Flags:
  --customer-id string   Google Ads customer ID (overrides env / config)
  --token string         Access token (overrides env / config)
  --human                Human-readable output (default is JSON)

Output is JSON by default, suitable for piping and AI agent use. Pass --human for readable text.

gcli --help
gcli <command> --help

# Dump full command tree for AI agents
gcli schema | jq '.subcommands[] | {path, short}'

中文

Google Ads API 命令行工具,专为 AI Agent 和开发者设计。

安装

npm install -g @bluevs/vhcli-google-ads

鉴权

Token 由 vhcli(Vision Hub CLI)发证,无需手动处理 access_token。

# 通过 vhcli 获取 token 并传给 gcli
TOKEN=$(vhcli project account-token \
  --customer-project-id=<项目ID> \
  --account-id=<客户ID> \
  --format=json | jq -r .access_token)

gcli --token="$TOKEN" --customer-id=<客户ID> auth show

或持久化凭据,后续无需每次传入:

gcli auth set --token="$TOKEN" --customer-id=<客户ID>

使用方式

gcli [命令] [参数]

全局参数:
  --customer-id string   Google Ads 客户 ID(覆盖环境变量 / 配置文件)
  --token string         访问令牌(覆盖环境变量 / 配置文件)
  --human                人类可读输出(默认为 JSON)

默认输出 JSON,适合管道传递和 AI Agent 调用。加 --human 切换为易读文本。

gcli --help
gcli <命令> --help

# 输出完整命令树(供 AI Agent 使用)
gcli schema | jq '.subcommands[] | {path, short}'

License

MIT