Skip to content

Commands

Overview of all ssgo CLI commands.

Available Commands

CommandDescription
ss apiGenerate Hertz HTTP servers from .api files
ss rpcGenerate Kitex RPC servers from .proto files
ss dbGenerate database code (SQLC, Bun, GORM)
ss runRun services with hot reload
ss versionPrint version information

ss version

Print version information including build details.

bash
ss version

Output:

ssgo version v1.0.0
Git Commit: abc1234
Build Date: 2024-01-15
Go Version: go1.21.0

ss completion

Generate shell completion scripts for bash, zsh, fish, or PowerShell.

bash
# Bash
ss completion bash > /etc/bash_completion.d/ss

# Zsh
ss completion zsh > "${fpath[1]}/_ss"

# Fish
ss completion fish > ~/.config/fish/completions/ss.fish

# PowerShell
ss completion powershell > ss.ps1

Global Flags

FlagShortDescription
--verbose-vEnable verbose output
--debug-dEnable debug mode
--help-hShow help

Command Groups

Released under the MIT License.