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:

  1. Cobra Framework - CLI command structure and parsing
  2. Command Files - Individual command implementations in cmd/wsh/cmd/wshcmd-*.go
  3. RPC Client - Communication with Wave Terminal backend via RpcClient
  4. Activity Tracking - Telemetry for command usage analytics
  5. Documentation - User-facing docs in docs/docs/wsh-reference.mdx

Commands are registered in their init() functions and execute through the Cobra framework.

Step-by-Step Guide

Step 1: Create Command File

Installs
24
GitHub Stars
21.0K
First Seen
Mar 2, 2026
add-wshcmd — wavetermdev/waveterm