Skip to main content

CLI Reference

Complete command-line reference for the clawhub CLI

Usage

clawhub [command] [options]

Global Options

These options work with all commands:

OptionAliasDescription
--version-vDisplay version number
--help-hDisplay help information
--verboseShow detailed output
--quiet-qSuppress non-error output
--jsonOutput results as JSON

install

Install a skill from the ZhenSkill registry.

Usage

clawhub install [skill-name] [options]

Options

OptionDescription
--version [version]Install specific version (default: latest)
--forceForce reinstall if already installed
--no-depsSkip dependency installation
--globalInstall globally for all Claude projects

Examples

# Install the latest version
clawhub install video-generator
# Install a specific version
clawhub install video-generator --version 2.1.0
# Force reinstall
clawhub install video-generator --force
# Install globally
clawhub install video-generator --global

list

List all installed skills.

Usage

clawhub list [options]

Options

OptionDescription
--globalList globally installed skills
--outdatedShow only skills with available updates
--jsonOutput as JSON

Examples

# List all installed skills
clawhub list
# Show only outdated skills
clawhub list --outdated
# Output as JSON
clawhub list --json

Output Format

The list command displays:

  • Skill name
  • Installed version
  • Latest available version
  • Installation status

Search for skills in the ZhenSkill registry.

Usage

clawhub search [query] [options]

Options

OptionDescription
--category [name]Filter by category
--limit [number]Limit number of results (default: 20)
--featuredShow only featured skills
--sort [field]Sort by: downloads, rating, date (default: relevance)

Examples

# Search for video-related skills
clawhub search video
# Search in a specific category
clawhub search video --category video-media
# Show featured skills only
clawhub search --featured
# Sort by downloads
clawhub search --sort downloads

update

Update an installed skill to the latest version.

Usage

clawhub update [skill-name] [options]

Options

OptionDescription
--allUpdate all installed skills
--version [version]Update to specific version
--selfUpdate clawhub CLI itself
--dry-runShow what would be updated without updating

Examples

# Update a specific skill
clawhub update video-generator
# Update all skills
clawhub update --all
# Update to a specific version
clawhub update video-generator --version 2.0.0
# Update clawhub CLI
clawhub update --self
# Preview updates without applying
clawhub update --all --dry-run

remove

Remove an installed skill.

Usage

clawhub remove [skill-name] [options]

Aliases

uninstall, rm

Options

OptionDescription
--forceForce removal without confirmation
--keep-configKeep configuration files

Examples

# Remove a skill (with confirmation)
clawhub remove video-generator
# Force remove without confirmation
clawhub remove video-generator --force
# Remove but keep config
clawhub remove video-generator --keep-config

info

Display detailed information about a skill.

Usage

clawhub info [skill-name] [options]

Options

OptionDescription
--jsonOutput as JSON
--versionsShow all available versions

Examples

# Show skill information
clawhub info video-generator
# Show all versions
clawhub info video-generator --versions
# Output as JSON
clawhub info video-generator --json

Information Displayed

  • Skill name and description
  • Current version and latest version
  • Author and maintainer
  • License and platform support
  • Dependencies
  • Installation status
  • Download count and rating
  • Repository and homepage URLs

config

View and modify clawhub configuration.

Usage

clawhub config [action] [key] [value]

Actions

ActionDescription
get [key]Get a configuration value
set [key] [value]Set a configuration value
delete [key]Delete a configuration key
listList all configuration values

Examples

# Show all configuration
clawhub config
# Get a specific value
clawhub config get skillsDirectory
# Set a value
clawhub config set autoUpdate false
# Delete a key
clawhub config delete customRegistry

Configuration Keys

KeyDescriptionDefault
claudeCodePathClaude Code installation pathAuto-detected
skillsDirectorySkills installation directory~/.clawhub/skills
registryZhenSkill registry URLhttps://www.zhenskill.com/api
autoUpdateAuto-update skillstrue

setup

Run the interactive setup wizard to configure clawhub.

Usage

clawhub setup [options]

Options

OptionDescription
--forceForce reconfiguration
--resetReset to default configuration

Examples

# Run setup wizard
clawhub setup
# Force reconfiguration
clawhub setup --force
# Reset to defaults
clawhub setup --reset

Environment Variables

clawhub respects the following environment variables:

VariableDescription
CLAWHUB_HOMEOverride default clawhub home directory
CLAWHUB_REGISTRYOverride default registry URL
CLAWHUB_TOKENAuthentication token for private registries
NO_COLORDisable colored output

Exit Codes

clawhub uses the following exit codes:

CodeMeaning
0Success
1Generic error
2Configuration error
3Network error
4Skill not found
5Installation error