tkn pac version
Display the version information for the tkn-pac CLI.Synopsis
Description
Theversion command displays the version of the tkn-pac CLI you have installed. This is useful for:
- Verifying installation
- Checking if updates are available
- Reporting issues (version info is helpful for troubleshooting)
- Ensuring compatibility with your Pipelines-as-Code installation
Usage Examples
Output Example
Version Format
Stable Releases
Format:vMAJOR.MINOR.PATCH
Development Builds
Format:vMAJOR.MINOR.PATCH-dev+COMMIT.DATE
Checking for Updates
To see if a newer version is available:-
Check your version:
-
Visit releases page:
-
Compare versions:
- Your version:
v0.24.0 - Latest release:
v0.25.0 - Update available!
- Your version:
Version Compatibility
Ensure your CLI version is compatible with:Pipelines-as-Code Controller
| CLI Version | Controller Version | Compatible |
|---|---|---|
| v0.25.x | v0.25.x | ✅ Yes |
| v0.25.x | v0.24.x | ✅ Yes (usually) |
| v0.25.x | v0.23.x | ⚠️ Maybe |
| v0.25.x | v0.20.x | ❌ No |
Best practice: Keep CLI and controller versions in sync or within 1-2 minor versions.
Tekton Pipelines
| PAC Version | Tekton Version | Status |
|---|---|---|
| v0.25.x | v0.50.x+ | ✅ Recommended |
| v0.25.x | v0.47.x+ | ✅ Supported |
| v0.25.x | v0.44.x+ | ⚠️ Limited support |
| v0.25.x | < v0.44.x | ❌ Not supported |
Kubernetes
| PAC Version | Kubernetes Version |
|---|---|
| v0.25.x | 1.27+ (recommended) |
| v0.25.x | 1.24+ (supported) |
| v0.25.x | 1.21+ (limited) |
Common Use Cases
Bug Reports
When reporting issues, always include version info:Version Verification After Install
Version Verification After Upgrade
CI/CD Pipelines
.github/workflows/pipeline.yaml
Troubleshooting
Command Not Found
-
Verify installation:
-
Check PATH:
-
Reinstall if needed:
Old Version Showing
-
Check for multiple installations:
-
Remove old version:
-
Verify again:
Development Version in Production
- Uninstall dev version
- Install stable release:
Mismatch with Controller
If CLI and controller versions differ significantly:- Update CLI to match controller
- Or update controller to match CLI
Related Information
Release Notes
View what’s new in each version:Changelog
Detailed changes:Latest Stable Release
Flags
The
version command accepts no flags. It simply displays the version and exits.Exit Codes
| Code | Meaning |
|---|---|
0 | Success - version displayed |
1 | Error - command failed |
Version Information in Other Commands
Some commands include version checks:See Also
- Installation Guide - Install or upgrade tkn-pac
- Release Notes - What’s new
- Changelog - Detailed changes
Quick Reference: