Skip to main content

CLI Reference

Quick Navigation

Jump to specific commands:

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:

FlagDescriptionDefault
--help, -hShow help message-
--version, -vShow version info-
--verboseEnable verbose outputfalse
--config <path>Specify config fileZithProject.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

CommandPurposeTypical Use Case
newCreate new projectStarting a fresh project
checkStatic analysisBefore committing code
compileGenerate binaryProduction builds
buildFull build pipelineDevelopment workflow
runCompile and executeQuick testing
fmtFormat codeBefore commits
replInteractive shellExperimentation
cleanRemove build artifactsCleanup
docsGenerate documentationBuilding docs
Pro Tip

Use zith <command> --help for detailed information about any command.

Next Steps