Skip to main content
Version: 1.3.0

CLI Reference

thresh provides a comprehensive set of commands for managing WSL development environments, AI-powered blueprint generation, and MCP server integration.

Quick Overview​

CommandDescription
upProvision a new environment from a blueprint
listList all thresh-managed environments
destroyRemove an environment
generateGenerate a custom blueprint using AI
chatInteractive AI chat for environment planning
blueprintsList available blueprints
distrosList available distributions
distroManage custom distributions
configManage configuration settings
serveStart MCP server
metricsShow performance metrics
versionShow version information

Command Categories​

Environment Management​

  • up - Create new environments
  • list - View all environments
  • destroy - Remove environments

AI Features​

  • generate - Generate custom blueprints
  • chat - Interactive AI assistant

Configuration​

Integration​

  • serve - MCP server for AI editors

Information​

Global Options​

All commands support these global options:

OptionDescription
--help, -hShow help information
--verbose, -vEnable verbose output
--quiet, -qSuppress non-error output
--versionShow version information

Getting Help​

For any command, use --help to see detailed usage:

thresh --help               # Show all commands
thresh up --help # Show help for 'up' command
thresh config --help # Show help for 'config' command

Exit Codes​

thresh uses standard exit codes:

CodeMeaning
0Success
1General error
2Invalid arguments
3WSL not available
4Environment not found
5Configuration error

Examples​

See individual command pages for detailed examples and use cases.