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

@volcengine-tls/volclog

v1.0.4

Published

Volcengine TLS CLI default agent-first edition with bundled Agent skill installer

Downloads

640

Readme

volclog-cli

中文版 | English

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, and raw instead of guessing flags or request shapes.
  • Dual editions — Ship both volclog (agent/CI focused) and volclog-human (human-friendly shortcut layer) while keeping the same tool / workflow / raw runtime 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-file injection.
  • 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 region such as cn-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.sh

You can also install the human shortcut edition explicitly:

bash scripts/install-binary.sh --edition human

volclog only exposes:

  • configure
  • doctor
  • skill
  • tool
  • workflow
  • raw

If you install via npm, install the default package first:

npm install -g @volcengine-tls/volclog

Install @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 doctor

For 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.export

Use raw only when the exact method/path is already known:

volclog raw --method POST --path /CreateProject --body file://req.json

raw 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.json

For large results, prefer file delivery:

volclog --output-mode file --output-dir ./out \
  workflow exec log.export-analysis --input file://req.json

For 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 human

Option 2: Install via npm

npm install -g @volcengine-tls/volclog-human

Option 3: Install with Go

Requires Go 1.22+.

go build -tags=human -o /usr/local/bin/volclog-human ./cmd/volclog

Option 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.sh

2. Configure Credentials

volclog-human configure

3. 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 / raw for agent flows — Human shortcuts remain in volclog-human, but they are not the default agent path.
  • Read the contract before execution — Start with tool describe or workflow describe, then build context and input.
  • Use --dry-run for 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 signalssummary.deliveryMode tells 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, and error.details in 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 region explicitly. The CLI does not infer it from endpoint or hostname.