| Command | What it does |
weft run [--watch] | Run a script, auto-reload on change |
weft build [-o myapp] | Standalone executable (no weft needed on target) |
weft check [--types] [--strict] | Type check (CI uses --strict) |
weft test [--race] [--mem] [--timeout N] [--coverage] | Run tests |
weft bench [--save f.json] [--compare base.json] | Benchmarks with regression tracking |
weft lint [path] | Static analysis (unused imports, TODOs, line length) |
weft fmt [--check] | Format code |
weft doc [path] | Generate API docs from pub fn |
weft info | System report (memory, disk, uptime, network) |
weft debug [--dap] | Debugger (CLI or DAP for VS Code) |
weft profile file.weft | Execution profiler |
weft mcp serve file.weft | MCP tool server |
weft lsp | Language server (completion, hover, rename, diagnostics) |
weft update | Self-update with SHA-256 verification |
weft upgrade | Upgrade installed packages |
weft outdated | Check for newer package versions |
weft get <name> | Install from registry or path |
weft publish --key name | Publish to registry with ed25519 signing |
weft gen "task" -o out.weft | LLM generates Weft code |
weft doctor | Check environment |
weft stdlib [pkg[.member]] | Browse stdlib (live probe for zero-arg functions) |