Command-Line Interface (CLI) CommandsΒΆ
This section provides an overview of the available commands in the Py Launch Blueprint CLI. These commands enable you to perform various tasks directly from the command line, such as running the project, managing dependencies, and ensuring code quality.
OverviewΒΆ
The CLI includes a variety of commands to streamline development and project management. Each command is designed to handle specific tasks efficiently, making it easier to interact with the project.
1. Running the ProjectΒΆ
runΒΆ
Run the main application.
UsageΒΆ
just run [cmd] [args]
ArgumentsΒΆ
cmd: The command to run (default:py-projects).args: Arguments to pass to the command.
2. Code Quality and TestingΒΆ
checkΒΆ
Perform code quality checks, including linting, type checking, and testing.
UsageΒΆ
just check
lintΒΆ
Run the linter and check for code style violations.
UsageΒΆ
just lint
formatΒΆ
Format the code using the configured code formatter.
UsageΒΆ
just format
typecheckΒΆ
Run the type checker.
UsageΒΆ
just typecheck
testΒΆ
Run the tests.
UsageΒΆ
just test [OPTIONS]
OptionsΒΆ
options: Additional pytest options.
3. Dependency ManagementΒΆ
install-devΒΆ
Install the package in editable mode with dev dependencies.
UsageΒΆ
just install-dev
install-dev-pipΒΆ
Install in development mode using pip.
UsageΒΆ
just install-dev-pip
4. Documentation ManagementΒΆ
install-docsΒΆ
Install Sphinx and any necessary extensions.
UsageΒΆ
just install-docs
init-docsΒΆ
Initialize documentation (use only for new projects).
UsageΒΆ
just init-docs
docs-helpΒΆ
Show help for documentation using make inside the docs directory.
UsageΒΆ
just docs-help
docsΒΆ
Build the documentation in the specified format (default is HTML).
UsageΒΆ
just docs [target]
ArgumentsΒΆ
target: Specify the build target (e.g.,html,latexpdf). Defaults tohtml.
docs-devΒΆ
Run a documentation server with hot reloading for development purposes.
UsageΒΆ
just docs-dev
docs-cleanΒΆ
Clean the documentation build files.
UsageΒΆ
just docs-clean
5. Development ToolsΒΆ
pre-commit-setupΒΆ
Set up pre-commit hooks.
UsageΒΆ
just pre-commit-setup
pre-commit-runΒΆ
Run all pre-commit hooks.
UsageΒΆ
just pre-commit-run
contributorsΒΆ
Update CONTRIBUTORS.md file.
UsageΒΆ
just contributors
6. Build and Package ManagementΒΆ
buildΒΆ
Build the package.
UsageΒΆ
just build
7. Utility CommandsΒΆ
versionΒΆ
Check installed package version.
UsageΒΆ
just version
cleanΒΆ
Clean up temporary files and caches.
UsageΒΆ
just clean
8. Alternative Pip CommandsΒΆ
format-pipΒΆ
Format code using pip.
UsageΒΆ
just format-pip
lint-pipΒΆ
Run linter using pip.
UsageΒΆ
just lint-pip
typecheck-pipΒΆ
Run type checker using pip.
UsageΒΆ
just typecheck-pip
test-pipΒΆ
Run tests using pip.
UsageΒΆ
just test-pip [OPTIONS]
OptionsΒΆ
options: Additional pytest options.