Vx Commands

v1.0.0

Complete vx CLI command reference. Use when looking up specific vx command syntax, flags, or output formats. All commands support --json for structured outpu...

0· 97·1 current·1 all-time
byHal@loonghao

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for loonghao/vx-commands.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Vx Commands" (loonghao/vx-commands) from ClawHub.
Skill page: https://clawhub.ai/loonghao/vx-commands
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install vx-commands

ClawHub CLI

Package manager switcher

npx clawhub@latest install vx-commands
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill is a CLI reference for the 'vx' tool; it neither requires credentials nor declares installs, and all referenced commands and environment variables (e.g., VX_OUTPUT) are relevant to a vx usage guide.
Instruction Scope
SKILL.md only documents vx commands, flags, output formats, and environment variables. It does not instruct the agent to read unrelated files, exfiltrate data, or contact third-party endpoints; commands shown are what a user would expect for a CLI reference.
Install Mechanism
No install spec or downloadable artifacts are present (instruction-only). Nothing is written to disk by the skill bundle itself.
Credentials
The skill does not request any environment variables, secrets, or config paths beyond documenting VX_OUTPUT as an optional user environment variable. No disproportionate credential access is requested.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system privileges. It is user-invocable and can be called by the agent when allowed, which is the normal platform behavior.
Assessment
This SKILL.md is a documentation-only reference for the vx CLI and appears coherent and proportionate. Before running any vx commands shown here, ensure the vx binary you use is from a trusted source (install origins for vx itself matter). Because the skill only documents commands, the primary risk comes from actually executing vx commands on your system (they can install tools, modify files, or access network resources). If you do not have vx installed or do not trust its source, do not run the commands. If you want stricter control, keep this skill user-invocable (not always-enabled) so it runs only when you explicitly call it.

Like a lobster shell, security has layers — review code before you run it.

latestvk97eb69fr5h5f34ds316w53vd5849b7v
97downloads
0stars
1versions
Updated 3w ago
v1.0.0
MIT-0

VX Command Reference

Quick rule: All vx commands support --json for structured output and --format toon for token-optimized output (saves 40-60% tokens). Set VX_OUTPUT=json to default all commands to JSON.

Structured Output Commands (AI-Optimized)

All commands support --json for structured output and --format toon for token-optimized output (saves 40-60% tokens).

Project Analysis

vx analyze --json           # Analyze project structure
vx check --json             # Verify tool constraints
vx ai context --json        # Generate AI-friendly project context

Output fields (analyze):

  • ecosystems[] - Detected ecosystems (nodejs, python, rust, go)
  • dependencies[] - Project dependencies
  • scripts[] - Available scripts
  • required_tools[] - Tools needed

Output fields (check):

  • requirements[] - Tool requirement status
  • all_satisfied - Whether all constraints are met
  • missing_tools[] - Tools that need installation

Output fields (ai context):

  • project - Project info (name, languages, frameworks)
  • tools[] - Installed tools with versions
  • scripts[] - Available scripts
  • constraints[] - Tool constraints

Tool Management

vx list --json              # List installed tools
vx versions node --json     # List available versions
vx which node --json        # Find tool location
vx search <query> --json    # Search for tools

Output fields (list):

  • runtimes[] - Available runtimes
  • total - Total count
  • installed_count - Installed count

Output fields (versions):

  • versions[] - Available versions with metadata
  • latest - Latest version
  • lts - LTS version (if applicable)

Output fields (which):

  • path - Executable path
  • version - Resolved version
  • source - Source (vx, system, global_package)

Installation

vx install node@22 --json   # Install tool
vx sync --json              # Sync from vx.toml

Output fields (install):

  • runtime - Tool name
  • version - Installed version
  • path - Installation path
  • duration_ms - Installation duration
  • dependencies_installed[] - Dependencies also installed

Output fields (sync):

  • installed[] - Successfully installed
  • skipped[] - Skipped (already installed)
  • failed[] - Failed installations
  • duration_ms - Total duration

AI Integration

vx ai context               # Generate AI-friendly context (Markdown)
vx ai context --json        # JSON format
vx ai context --minimal     # Minimal output
vx ai session init          # Initialize session state
vx ai session status        # Show session status
vx ai session cleanup       # Clean up session

Environment

vx env --json               # Show environment variables
vx dev --export             # Export shell environment

Output Formats

JSON Format

vx list --json
# Output: {"runtimes": [...], "total": 50, "installed_count": 5}

TOON Format (Token-Optimized)

vx list --format toon
# Output:
# runtimes[50]{name,installed,description}:
#   node,true,Node.js runtime
#   python,false,Python runtime
#   ...

TOON format is recommended for AI agents - it saves 40-60% tokens compared to JSON.

Environment Variable

export VX_OUTPUT=json       # Default to JSON output
export VX_OUTPUT=toon       # Default to TOON output

Command Groups

Tool Execution

vx <tool> [args...]         # Run any tool
vx npm install              # Run npm
vx cargo build              # Run cargo

Advanced Execution Syntax

# Runtime with version
vx node@22 app.js                     # Use specific Node.js version

# Runtime executable override
vx msvc@14.42::cl main.cpp            # Run cl from MSVC runtime

# Package execution (ecosystem:package pattern)
vx npm:vite                            # Run vite via npm
vx uv:ruff check .                    # Run ruff via uv
vx npm:typescript@5.0::tsc            # Run tsc from specific typescript version

# Package aliases (shortcuts)
vx vite                                # Same as: vx npm:vite
vx meson                              # Same as: vx uv:meson

# Multi-runtime composition
vx --with bun@1.1 --with deno node app.js   # Multiple runtimes in PATH

Tool Management

vx install <tool>@<version> # Install tool
vx uninstall <tool>         # Uninstall tool
vx list                     # List tools
vx versions <tool>          # Show versions
vx which <tool>             # Find tool path
vx switch <tool>@<version>  # Switch version

Project Management

vx init                     # Initialize vx.toml
vx add <tool>               # Add tool to project
vx remove <tool>            # Remove tool from project
vx sync                     # Sync tools from vx.toml
vx lock                     # Generate vx.lock
vx check                    # Check constraints

Script Execution

vx run <script>             # Run script from vx.toml
vx run --list               # List available scripts

Cache Management

vx cache dir                # Show cache directory
vx cache clean              # Clean cache

Global Flags

--json                      # JSON output
--format <text|json|toon>   # Output format
--verbose                   # Verbose output
--debug                     # Debug output
--use-system-path           # Use system PATH
--cache-mode <mode>         # Cache mode (normal, refresh, offline, no-cache)

Exit Codes

  • 0 - Success
  • 1 - General error
  • 2 - Tool not found
  • 3 - Installation failed
  • 4 - Version not found
  • 5 - Network error
  • 6 - Permission error
  • 7 - Configuration error

Comments

Loading comments...