CLI Reference
Quick Navigation
Jump to specific commands:
zith check- Check code for errorszith compile- Compile to binaryzith build- Build projectzith run- Run program directlyzith new- Create new projectzith fmt- Format code
Overview
The Zith CLI provides all the tools you need to develop, build, and run Zith programs. Each command is designed to be intuitive and follow Unix conventions.
Command Structure
All Zith commands follow this pattern:
zith <command> [options] [arguments]
Global Flags
These flags work with all commands:
| Flag | Description | Default |
|---|---|---|
--help, -h | Show help message | - |
--version, -v | Show version info | - |
--verbose | Enable verbose output | false |
--config <path> | Specify config file | ZithProject.toml |
Available Commands
Development Workflow
graph LR
A[zith new] --> B[zith check]
B --> C[zith build]
C --> D[zith run]
D --> E[zith clean]
Quick Reference Table
| Command | Purpose | Typical Use Case |
|---|---|---|
new | Create new project | Starting a fresh project |
check | Static analysis | Before committing code |
compile | Generate binary | Production builds |
build | Full build pipeline | Development workflow |
run | Compile and execute | Quick testing |
fmt | Format code | Before commits |
repl | Interactive shell | Experimentation |
clean | Remove build artifacts | Cleanup |
docs | Generate documentation | Building docs |
Pro Tip
Use zith <command> --help for detailed information about any command.
Next Steps
- Learn about individual commands in the sidebar
- Read about global flags
- Set up your project configuration