Manage pyavd Version
pyavd Version Management¶
The avd-cli pyavd command group provides tools to manage your pyavd package version.
Commands¶
version¶
Display the currently installed pyavd version.
Example output:
install¶
Install a specific version of pyavd.
Arguments:
| Argument | Description | Required |
|---|---|---|
VERSION |
The pyavd version to install (e.g., 5.7.0, 5.6.2) |
Yes |
Options:
| Option | Description | Default |
|---|---|---|
--package-manager |
Package manager to use (auto, pip, uv) |
auto |
--dry-run |
Show command without executing | False |
Examples:
# Install a specific version
avd-cli pyavd install 5.7.0
# Use pip explicitly
avd-cli pyavd install 5.7.0 --package-manager pip
# Preview the command without executing
avd-cli pyavd install 5.7.0 --dry-run
Version Display¶
The avd-cli --version command displays both the avd-cli version and the installed pyavd version:
Example output:
Package Manager Detection¶
When using --package-manager auto (default), avd-cli automatically detects:
- uv-managed projects: If
uv.lockexists, usesuv addto updatepyproject.tomland lock file - uv available: Uses
uv pip installfor non-managed environments - pip fallback: Uses
pip installif uv is not available
For uv-managed projects
In projects with a uv.lock file, the install command uses uv add to ensure
the version is properly recorded in pyproject.toml and persists across uv sync.
Use Cases¶
Downgrade for Compatibility¶
If you need to use an older pyavd version for compatibility with existing configurations:
Upgrade to Latest¶
To upgrade to a specific newer version:
Check Before Install¶
Use --dry-run to see what command would be executed:
avd-cli pyavd install 5.7.0 --dry-run
# Output: Dry run mode - command that would be executed:
# uv add pyavd==5.7.0
Next Steps¶
- Check pyavd releases on PyPI for available versions
- Learn about the generate command to create configurations
- Learn about the deploy command to deploy to devices