-
Notifications
You must be signed in to change notification settings - Fork 54
Nomad Pack Registry Add
Charlie Voiselle edited this page Feb 11, 2022
·
1 revision
layout: commands page_title: "Commands: Registry add" sidebar_title: "registry add" description: "Add registries or packs to the local environment."
Command: nomad-pack registry add
Add registries or packs to the local environment.
Usage: nomad-pack registry add <name> <source> [options]
Add nomad pack registries.
Examples: # Download latest ref of the pack registry to the global cache. nomad-pack registry add community github.com/hashicorp/nomad-pack-community-registry
# Download latest ref 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/SHA.
nomad-pack registry add community github.com/hashicorp/nomad-pack-community-registry --ref=v0.1.0
-
-target=<string>
- A specific pack within the registry to be added. -
-ref=<string>
- Specific git ref of the registry or pack to be added. Supports tags, SHA, and latest. If no ref is specified, defaults to latest. Running "nomad registry add" multiple times for the same ref is idempotent, however running "nomad-pack registry add" without specifying a ref, or when specifying @latest, is destructive, and will overwrite current @latest in the global cache.
Using ref with a file path is not supported.