CLI -- Command-Line Interface¶
Documentation for the ezqt command-line interface.
Installation¶
Commands¶
ezqt init -- Initialize Project¶
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 |
Examples:
ezqt create -- Create Project Template¶
Create project template.
| Option | Short | Description |
|---|---|---|
--template |
-t |
Template type |
--name |
-n |
Project name |
--verbose |
-v |
Verbose output |
Examples:
ezqt convert / ezqt mkqm -- Convert Translation Files¶
Convert translation files to Qt binary format.
Examples:
ezqt test -- Run Tests¶
Run tests from CLI wrappers.
| Option | Short | Description |
|---|---|---|
--unit |
-u |
Unit tests |
--integration |
-i |
Integration tests |
--coverage |
-c |
Tests with coverage |
--verbose |
-v |
Verbose output |
Examples:
ezqt docs -- Documentation Utilities¶
Serve docs locally.
| Option | Short | Description |
|---|---|---|
--serve |
-s |
Serve docs locally |
--port |
-p |
Port (default: 8000) |
ezqt info -- Package Information¶
Display package/runtime information.
Use Cases¶
For Developers¶
For Maintainers¶
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 |
Troubleshooting¶
| Issue | Solution |
|---|---|
ezqt not found |
Reinstall package in active environment |
| Init fails in wrong folder | Run command from project root |
| Docs serve fails on port | Use another --port value |
Implementation¶
CLI source: src/ezqt_app/cli/main.py
Resources¶
- API Reference -- Widget documentation
- Examples -- Example code
- Testing Guide -- Testing guidelines and best practices
- QSS Style Guide -- Visual customization