Skip to main content
Version: 1.4.0

CLI Reference

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

New in v1.4.0

Thresh v1.4.0 introduces grouped blueprint commands for better organization:

  • thresh blueprints → thresh blueprint list
  • thresh generate → thresh blueprint generate
  • New: thresh blueprint delete to remove generated blueprints

Quick Overview​

CommandDescription
upProvision a new environment from a blueprint
listList all thresh-managed environments
destroyRemove an environment
blueprintManage blueprints (list, generate, delete)
blueprint listList available blueprints
blueprint generateGenerate custom blueprint using AI
blueprint deleteDelete a generated blueprint
chatInteractive AI chat for environment planning
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

Blueprint Management​

AI Features​

  • 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.