add-wshcmd
Installation
SKILL.md
Adding a New wsh Command to Wave Terminal
This guide explains how to add a new command to the wsh CLI tool.
wsh Command System Overview
Wave Terminal's wsh command provides CLI access to Wave Terminal features. The system uses:
- Cobra Framework - CLI command structure and parsing
- Command Files - Individual command implementations in
cmd/wsh/cmd/wshcmd-*.go - RPC Client - Communication with Wave Terminal backend via
RpcClient - Activity Tracking - Telemetry for command usage analytics
- Documentation - User-facing docs in
docs/docs/wsh-reference.mdx
Commands are registered in their init() functions and execute through the Cobra framework.