@volcengine-tls/volclog
v1.0.4
Published
Volcengine TLS CLI default agent-first edition with bundled Agent skill installer
Downloads
640
Readme
volclog-cli
The official Volcengine TLS CLI. volclog is the default agent and automation edition with the contract-first tool / workflow / raw path, while volclog-human keeps the human shortcut layer for frequent interactive work.
What volclog provides
- Agent-native contract path — Use
tool describe/exec,workflow describe/exec, andrawinstead of guessing flags or request shapes. - Dual editions — Ship both
volclog(agent/CI focused) andvolclog-human(human-friendly shortcut layer) while keeping the sametool / workflow / rawruntime semantics. - Broad TLS coverage — Covers projects, topics, indexes, search and analysis, alarms, host groups, collectors, ETL, consumer groups, and more.
- Safer execution flow —
--dry-run, structured envelopes, trace artifacts, and file delivery make preview, validation, and recovery easier. - Flexible credential setup — Supports local profiles, explicit region/endpoint, environment variables, and one-shot
--secrets-fileinjection. - Layered usage — Start with
tool / workflow / raw; use human shortcuts only when you intentionally want the full interactive layer.
Features
| Category | Capabilities | | --- | --- | | 📁 Project | Create, query, update, and delete log projects | | 📚 Topic | Create, query, update, and delete log topics and manage lifecycle settings | | 🔍 Index & Log | Manage indexes, run log search, histogram preview, SQL analysis, and export large result sets | | 📈 Metric Topic | Create metric topics and query metrics through PromQL-compatible APIs | | 🚨 Alarm | Configure alarm policies, templates, and notification channels | | 🔄 Consumer / Shipper | Manage consumer groups and ship data to downstream storage systems | | 🛠 ETL / Processor | Clean, enrich, distribute, and transform logs | | 🌐 Host / Collector | Manage host groups and LogCollector rules |
Installation & Quick Start
Prerequisites
Before you start, make sure you have:
- A terminal environment for your operating system
- Your Volcengine AK (Access Key ID) and SK (Secret Access Key)
- An explicit target
regionsuch ascn-beijing - The matching TLS endpoint such as
https://tls-cn-beijing.volces.com
region must be provided explicitly. The CLI does not infer region from endpoint or hostname.
Quick Start (AI Agent)
This is the recommended path for Agent, CI, and automation.
Commands in this section use volclog by default.
1. Install
Recommended: install the default volclog binary:
VOLCLOG_BASE_URL=https://github.com/volcengine-tls/ve-tls-cli/releases/latest/download \
bash scripts/install-binary.shYou can also install the human shortcut edition explicitly:
bash scripts/install-binary.sh --edition humanvolclog only exposes:
configuredoctorskilltoolworkflowraw
If you install via npm, install the default package first:
npm install -g @volcengine-tls/volclogInstall @volcengine-tls/volclog-human only if you explicitly need the human shortcut layer.
2. Configure And Verify
Set up a local profile or inject one-shot credentials, then verify with doctor:
volclog configure set \
--profile default \
--ak <ak> \
--sk <sk> \
--region cn-beijing \
--endpoint https://tls-cn-beijing.volces.com
volclog doctorFor stateless runs, prefer one-shot --secrets-file over broad environment injection. Do not combine --profile and --secrets-file in the same run.
3. Discover Contracts Before Execution
Use tool and workflow to discover the contract before guessing input:
volclog tool list
volclog tool list project
volclog tool describe project.create
volclog workflow list
volclog workflow describe log.exportUse raw only when the exact method/path is already known:
volclog raw --method POST --path /CreateProject --body file://req.jsonraw also accepts --input as a compatibility alias for --body, but --body and --input must not be passed together.
4. Dry Run, Execute, And Filter
Validate first, then execute:
cat >ctx.json <<'EOF'
{
"region": "cn-beijing",
"execution": { "dry_run": true }
}
EOF
cat >req.json <<'EOF'
{
"ProjectName": "demo",
"Region": "cn-beijing"
}
EOF
volclog tool exec project.create --context file://ctx.json --input file://req.jsonFor large results, prefer file delivery:
volclog --output-mode file --output-dir ./out \
workflow exec log.export-analysis --input file://req.jsonFor envelope projection, use --jmes-filter on stdout-only runs:
volclog tool exec project.describe-projects \
--jmes-filter "data.Projects[].{ProjectId: ProjectId, ProjectName: ProjectName}"--jmes-filter runs on the complete CLI envelope, so paths such as data.*, summary.*, and error.* are valid. If the selected field exists but is null, stdout prints the literal null and the command still succeeds. Missing paths, including out-of-bounds array indexes, fail with filter matched no value. It cannot be combined with file delivery.
Quick Start (Human Users)
If you are working directly in a terminal and want the shortcut layer, install volclog-human.
1. Install
Option 1: Download Binary (Recommended)
VOLCLOG_BASE_URL=https://github.com/volcengine-tls/ve-tls-cli/releases/latest/download \
bash scripts/install-binary.sh --edition humanOption 2: Install via npm
npm install -g @volcengine-tls/volclog-humanOption 3: Install with Go
Requires Go 1.22+.
go build -tags=human -o /usr/local/bin/volclog-human ./cmd/volclogOption 4: Install from Local Source
git clone https://github.com/volcengine-tls/ve-tls-cli.git
cd ve-tls-cli
VOLCLOG_EDITION=human bash scripts/install-local.sh2. Configure Credentials
volclog-human configure3. Start Using
volclog-human project list
volclog-human topic list --project-id <your-project-id>For the full shortcut layer, see docs/cli-human-shortcuts.md.
Agent Skills
The repository includes one bundled agent skill package under skills/:
| Skill | Description |
| --- | --- |
| volclog-core | Agent-only incremental knowledge for intent routing, cross-group SOPs, runtime semantics, recovery posture, and stateless credential guidance beyond tool describe / workflow describe |
Install it into your agent skill directory:
volclog skill install --dir <agent-skills-dir>For one-off installs, npx also works:
npx @volcengine-tls/volclog skill install --dir <agent-skills-dir>Advanced & Best Practices
- Prefer
tool / workflow / rawfor agent flows — Human shortcuts remain involclog-human, but they are not the default agent path. - Read the contract before execution — Start with
tool describeorworkflow describe, then buildcontextandinput. - Use
--dry-runfor writes — Preview request shape and runtime selection before sending mutating calls. - Use file delivery for large results — Prefer
--output-mode file --output-dir <writable-dir>when stdout may be too large. - Understand runtime signals —
summary.deliveryModetells you whether the result stayed on stdout or was written to file. - Use the flat error object — On failures, read
error.kind,error.code,error.message, anderror.detailsin that order. - Keep region explicit — Do not assume endpoint-derived region inference.
Further reading:
Security and privacy
This project takes security seriously. For vulnerability reporting and supported versions, see SECURITY.md
- Security — Avoid hardcoding plaintext AK/SK in command arguments. Prefer local profiles, one-shot
--secrets-file, or scoped environment injection. - Region / endpoint discipline — Always set
regionexplicitly. The CLI does not infer it from endpoint or hostname.
