Skip to content
AI/LLM: This documentation page is available in plain markdown format at /docs/cli.md

The Tank CLI provides 19 commands for publishing, installing, and managing AI agent skills with security-first design.

Installation

npm install -g @tankpkg/cli

Global Options

All commands support these options:

OptionDescription
-h, --helpDisplay help for the command
-V, --versionDisplay the CLI version

tank init

Create a new tank.json in the current directory

tank init

Options

FlagDescription
-y, --yesSkip prompts, use defaults
--name <name>Skill name
--skill-version <version>Skill version (default: 0.1.0)
--description <desc>Skill description
--privateMake skill private
--forceOverwrite existing tank.json

tank login

Authenticate with the Tank registry via browser

tank login

tank whoami

Show the currently logged-in user

tank whoami

tank logout

Remove authentication token from config

tank logout

tank publish

Pack and publish a skill to the Tank registry

Aliases: pub

tank publish

Options

| Flag | Description | | --------------------- | ----------------------------------- | -------- | | --dry-run | Validate and pack without uploading | | --private | Publish skill as private | | --visibility <mode> | Skill visibility (public | private) |

tank install

Install a skill from the Tank registry, or all skills from lockfile

Aliases: i

tank install [name] [version-range]

Arguments

NameDescriptionRequired
nameSkill name (e.g., @org/skill-name). Omit to install from lockfile.No
version-rangeSemver range (default: *)No

Options

FlagDescription
-g, --globalInstall skill globally (available to all projects)

tank remove

Remove an installed skill

Aliases: rm, r

tank remove <name>

Arguments

NameDescriptionRequired
nameSkill name (e.g., @org/skill-name)Yes

Options

FlagDescription
-g, --globalRemove a globally installed skill

tank update

Update skills to latest versions within their ranges

Aliases: up

tank update [name]

Arguments

NameDescriptionRequired
nameSkill name to update (omit to update all)No

Options

FlagDescription
-g, --globalUpdate globally installed skills

tank verify

Verify installed skills match the lockfile

tank verify

tank permissions

Display resolved permission summary for installed skills

Aliases: perms

tank permissions

Search for skills in the Tank registry

Aliases: s

tank search <query>

Arguments

NameDescriptionRequired
querySearch queryYes

tank info

Show detailed information about a skill

Aliases: show

tank info <name>

Arguments

NameDescriptionRequired
nameSkill name (e.g., @org/skill-name)Yes

tank audit

Display security audit results for installed skills

tank audit [name]

Arguments

NameDescriptionRequired
nameSkill name to audit (omit to audit all)No

tank scan

Scan a local skill for security issues without publishing

tank scan

Options

FlagDescription
-d, --directory <path>Directory to scan (default: current directory)

Link current skill directory to AI agent directories (for development)

Aliases: ln

tank link

Remove skill symlinks from AI agent directories

tank unlink

tank doctor

Diagnose agent integration health

tank doctor

tank migrate

Migrate skills.json → tank.json and skills.lock → tank.lock

tank migrate

tank upgrade

Update tank to the latest version

tank upgrade [version]

Arguments

NameDescriptionRequired
versionTarget version (default: latest)No

Options

FlagDescription
--dry-runCheck for updates without installing
--forceReinstall even if already on the target version

Quick Reference

CommandAlias(es)Description
tank initCreate a new tank.json in the current directory
tank loginAuthenticate with the Tank registry via browser
tank whoamiShow the currently logged-in user
tank logoutRemove authentication token from config
tank publishpubPack and publish a skill to the Tank registry
tank installiInstall a skill from the Tank registry, or all skills from lockfile
tank removerm, rRemove an installed skill
tank updateupUpdate skills to latest versions within their ranges
tank verifyVerify installed skills match the lockfile
tank permissionspermsDisplay resolved permission summary for installed skills
tank searchsSearch for skills in the Tank registry
tank infoshowShow detailed information about a skill
tank auditDisplay security audit results for installed skills
tank scanScan a local skill for security issues without publishing
tank linklnLink current skill directory to AI agent directories (for development)
tank unlinkRemove skill symlinks from AI agent directories
tank doctorDiagnose agent integration health
tank migrateMigrate skills.json → tank.json and skills.lock → tank.lock
tank upgradeUpdate tank to the latest version

Environment Variables

VariableDescription
TANK_TOKENAPI token — overrides ~/.tank/config.json (used in CI/CD)
TANK_DEBUG=1Enable debug logging (pino → Loki structured logs)
REGISTRY_URLOverride the default registry URL

Configuration Files

FilePurpose
~/.tank/config.jsonAuth token and registry URL (permissions: 0600)
tank.jsonProject manifest — skill metadata, dependencies, and permission budget
tank.lockDeterministic lockfile — pinned versions with SHA-512 hashes

Exit Codes

CodeMeaning
0Success
1General error (invalid arguments, network failure, auth error)
2Security check failed (tank verify, tank audit, or tank scan with a FAIL verdict)

Command Palette

Search skills, docs, and navigate Tank