Versioning
Version management and deprecation.
Version format
grekt uses Semantic Versioning with the format MAJOR.MINOR.PATCH.
Each publish requires a unique version. If you try to publish an existing version:
✗ Version 1.0.0 already exists for @author/my-artifact
ℹ Bump the version in grekt.yaml and try againVersions are immutable - this ensures that grekt install with a lockfile always produces the same result.
Listing versions
grekt versions @author/my-artifactShows all published versions with deprecation status.
Artifact info
grekt info @author/my-artifactShows latest version, description, author, and components.
Deprecating
Mark a version as deprecated to warn users:
grekt deprecate @author/my-artifact@1.0.0 "Security fix in 1.0.1"Effects
- Version remains installable
grekt installshows a warning when installing deprecated versionsgrekt versionsmarks it as deprecatedgrekt infoincludes deprecation message
Why deprecate instead of delete?
Deleting versions breaks reproducibility. Projects using lockfiles expect specific versions to remain available. Deprecation warns users without breaking their builds.
Registry only
Deprecation only works with the official grekt registry. For artifacts hosted on GitHub or GitLab, deprecation is not supported - use delete to remove versions entirely.
Undeprecating
Remove deprecation from a version:
grekt undeprecate @author/my-artifact@1.0.0Related
- grekt deprecate - Command reference
- grekt undeprecate - Command reference
- grekt versions - Command reference
- grekt info - Command reference