Global flags can be used with any Mizu CLI command. Flags are options you add after a command to change its behavior - likeDocumentation Index
Fetch the complete documentation index at: https://docs.go-mizu.dev/llms.txt
Use this file to discover all available pages before exploring further.
--quiet to reduce output or --json to get machine-readable output for scripts. Global flags can be placed either before or after the subcommand.
Available Flags
| Flag | Short | Type | Description |
|---|---|---|---|
--help | -h | bool | Show help for command |
--quiet | -q | bool | Reduce output (errors only) |
--verbose | -v | bool | Increase verbosity (repeatable) |
--json | bool | Emit machine-readable JSON output | |
--no-color | bool | Disable color output |
Flag Placement
Global flags can appear before or after the command:Detailed Reference
--help, -h
Shows help information for the CLI or a specific command.
--quiet, -q
Suppresses normal output, showing only errors. Useful for scripts where you only care about failures.
--quiet is ignored when --json is used, since JSON output mode has its own output format.--verbose, -v
Increases output verbosity. Can be repeated for more detail.
--json
Enables machine-readable JSON output. All commands support this flag.
--no-color
Disables colored output. Useful when:
- Piping output to files
- Running in environments without color support
- Personal preference
Colors are automatically disabled when stdout is not a terminal (e.g., when piping or redirecting).
Flag Combinations
Common Patterns
Conflicting Flags
Some flags override others:| Combination | Behavior |
|---|---|
--quiet --verbose | --quiet takes precedence |
--quiet --json | JSON output is not suppressed |
--json --no-color | JSON output (no colors anyway) |
Environment Variables
The CLI also respects these environment variables:| Variable | Description | Equivalent Flag |
|---|---|---|
NO_COLOR | Disable colors when set | --no-color |
TERM=dumb | Disable colors | --no-color |
Examples
Scripting
CI/CD Pipeline
Debugging
See Also
- Exit Codes - Return codes for scripting
- JSON Output - Machine-readable output format
- mizu new - Create new projects
- mizu dev - Run in development mode