voluum-setup-install
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesevoluum-clivoluum-cliSupported environments
支持的环境
- Linux
- macOS
- Windows through WSL (Ubuntu/Debian recommended)
- Linux
- macOS
- Windows(通过WSL,推荐使用Ubuntu/Debian)
Prerequisites
前置要求
git- Bun runtime ()
bun --version - Network access to
https://api.voluum.com
git- Bun运行时(可通过验证)
bun --version - 能够访问的网络环境
https://api.voluum.com
Install from source
从源码安装
bash
git clone https://github.com/markab21/voluum-cli.git
cd voluum-cli
bun install
bun run buildOptional global CLI link:
bash
bun link
voluum --helpWithout linking:
bash
node dist/index.js --helpbash
git clone https://github.com/markab21/voluum-cli.git
cd voluum-cli
bun install
bun run build可选:全局CLI链接:
bash
bun link
voluum --help不使用链接的方式:
bash
node dist/index.js --helpConfigure authentication
配置认证
Login using Voluum access credentials:
bash
voluum auth login --accessKeyId '<ACCESS_KEY_ID>' --accessKey '<ACCESS_KEY>'Or use environment variables:
bash
export VOLUUM_BASE_URL="https://api.voluum.com"
export VOLUUM_TOKEN="<SESSION_TOKEN>"Token storage path:
~/.voluum-cli/config.json
使用Voluum访问凭证登录:
bash
voluum auth login --accessKeyId '<ACCESS_KEY_ID>' --accessKey '<ACCESS_KEY>'或使用环境变量:
bash
export VOLUUM_BASE_URL="https://api.voluum.com"
export VOLUUM_TOKEN="<SESSION_TOKEN>"令牌存储路径:
~/.voluum-cli/config.json
First-run verification
首次运行验证
bash
voluum --help
voluum reports --help
voluum reports query --path /report --query from=2026-02-17T00:00:00Z,to=2026-02-18T00:00:00Z,groupBy=campaign,limit=5 --prettybash
voluum --help
voluum reports --help
voluum reports query --path /report --query from=2026-02-17T00:00:00Z,to=2026-02-18T00:00:00Z,groupBy=campaign,limit=5 --prettyTroubleshooting
故障排除
- : install Bun and restart shell.
bun: command not found - : rerun
voluum: command not foundor usebun link.node dist/index.js - : run
No auth token foundor setvoluum auth login.VOLUUM_TOKEN - WSL users: run install/auth commands inside WSL shell, not PowerShell CMD.
- :安装Bun并重启终端。
bun: command not found - :重新运行
voluum: command not found或使用bun link。node dist/index.js - :运行
No auth token found或设置voluum auth login环境变量。VOLUUM_TOKEN - WSL用户:请在WSL终端内执行安装/认证命令,不要在PowerShell或CMD中操作。