atmos version track add
Add a dependency entry to a version track in atmos.yaml, preserving comments and formatting.
When --ecosystem is omitted, Atmos infers it from the package coordinate:
actions/*and otherowner/repoaction paths resolve togithub/actions- registry-hosted images such as
ghcr.io/...resolve tooci - bare tool names such as
opentofuorkubectlresolve totoolchain - other
owner/repocoordinates resolve togithub
Usage
atmos version track add NAME [flags]
Arguments
NAMErequired- Entry name used by
!version,{{ .version.name }}, and marker annotations.
Flags
--package- Package coordinate. Defaults to
NAME. --ecosystem- Ecosystem such as
github/actions,github,oci,docker, ortoolchain. --datasource- Datasource override, such as
github-tags,github-releases,oci-tags,docker-tags, ortoolchain. --provider- Provider name from
version.providers. --desired- Desired version: concrete, SemVer constraint, or
latest. Default islatest. --group- Version group name.
--pin- Pin policy. Use
digestorshato lock and render the immutable identifier. --include- Candidate version patterns to include. Repeat the flag for multiple patterns.
--exclude- Candidate version patterns to exclude. Repeat the flag for multiple patterns.
--prerelease- Allow prerelease candidates for this entry.
Examples
# Add a GitHub Action and pin it to the resolved commit SHA
atmos version track add checkout --package=actions/checkout --pin=sha
# Add a toolchain tool with a SemVer constraint
atmos version track add opentofu --desired="~1.10"
# Add a GitHub Action but exclude a known-bad tag
atmos version track add checkout --package=actions/checkout --desired=v6 --exclude=v6.0.0
# Add a container image on the prod track
atmos version track add nginx --package=library/nginx --track=prod