CLI reference¶
ezqt is the command-line interface for EzQt App. It exposes project
initialization, documentation serving, and utility commands.
๐ป Usage¶
โ๏ธ Global options¶
| Option | Short | Description |
|---|---|---|
--version |
-v |
Show the version and exit |
--help |
-h |
Show help message and exit |
๐ Commands¶
| Command | Description |
|---|---|
init |
Initialize project assets and configuration |
create |
Create a new project from a template |
convert |
Convert translation .ts files to Qt binary .qm format |
docs |
Serve the documentation locally |
info |
Display package and runtime information |
๐ง ezqt init¶
Initialize project assets and configuration.
| Option | Short | Description |
|---|---|---|
--force |
-f |
Force overwrite of existing files |
--verbose |
-v |
Verbose output |
--no-main |
Skip main.py generation |
๐ง ezqt create¶
Create a new project from a template.
| Option | Short | Description |
|---|---|---|
--template |
-t |
Template type |
--name |
-n |
Project name |
--verbose |
-v |
Verbose output |
๐ง ezqt convert¶
Convert translation .ts files to Qt binary .qm format.
No options.
๐ง ezqt docs¶
Serve the documentation locally.
| Option | Short | Description |
|---|---|---|
--serve |
-s |
Start local dev server |
--port |
-p |
Port number (default: 8000) |
๐ง ezqt info¶
Display package and runtime information.
No options.
โ๏ธ Environment variables¶
| Variable | Description |
|---|---|
EZQT_VERBOSE |
Enable verbose mode by default for all commands |
EZQT_PROJECT_ROOT |
Override the project root directory detection |
EZQT_THEME_DIR |
Custom path to the themes directory |
EZQT_NO_COLOR |
Disable colored CLI output |
๐งช Examples¶
# Initialize a new project
ezqt init --verbose
# Bootstrap with force overwrite
ezqt init --force --no-main
# Create a project from the basic template
ezqt create --template basic --name my_app
# Serve documentation on a custom port
ezqt docs --serve --port 8080
# Convert translation files
ezqt convert
# Display runtime info
ezqt info
Troubleshooting¶
| Issue | Solution |
|---|---|
ezqt not found |
Reinstall package in active environment: pip install -e ".[dev]" |
| Init fails in wrong folder | Run command from project root |
| Docs serve fails on port | Use another --port value |
CLI source
CLI implementation: src/ezqt_app/cli/main.py