Nomad
nomad-pack registry add command reference
Use the nomad-pack registry add command to add registries or packs to the local environment.
Usage
nomad-pack registry add <name> <source> [options]
Options
-target=<string>: A specific pack within the registry.-ref=<string>: Specific Git reference of the registry or pack. Supports tags, SHA, andlatest. If you do not specify a reference, the command defaults to@latest. Runningnomad registry addmultiple times for the same ref is idempotent. However, runningnomad-pack registry addwithout specifying a reference or when specifying@latestis destructive and overwrites current@latestin the global cache. Usingrefwith a file path is not supported.
Examples
Download latest reference of the Nomad Pack registry to the global cache.
nomad-pack registry add community \
github.com/hashicorp/nomad-pack-community-registry
Download latest reference of a specific pack from the registry to the global cache.
nomad-pack registry add community \
github.com/hashicorp/nomad-pack-community-registry \
--target=nomad_example
Download packs from a registry at a specific tag, release, or SHA.
nomad-pack registry add community \
github.com/hashicorp/nomad-pack-community-registry \
--ref=v0.1.0