Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/1117.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added a `--dependencies` flag to `infrahubctl marketplace get`. When downloading a schema or a collection, it now also resolves and downloads the schemas they depend on, via the marketplace API. Dependencies are grouped by the collection they belong to: prerequisite collections (and, for a single schema, dependencies that are members of a collection) are placed in their own `<collection>/` directory, while dependencies that belong to no collection land in the output root. Resolution is transitive and cycle-safe, and referenced kinds the marketplace cannot resolve are reported as unresolved dependencies. A schema that already exists in the output directory is reconciled to a single file rather than duplicated across directories — kept by default, or overwritten with the new `-y`/`--yes` flag.
2 changes: 2 additions & 0 deletions docs/docs/infrahubctl/infrahubctl-marketplace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ $ infrahubctl marketplace get [OPTIONS] IDENTIFIER

* `-v, --version TEXT`: Specific schema version, for example 1.2.0. Default: latest published.
* `-c, --collection`: Force collection download. Default: auto-detect whether the identifier is a schema or collection.
* `--dependencies`: Also download the schemas this schema or collection depends on.
* `-y, --yes`: Overwrite schemas that already exist in the output directory without prompting.
* `-s, --stdout`: Print content to stdout instead of writing to disk. Status messages go to stderr.
* `-o, --output-dir PATH`: Directory to save downloaded files. [default: schemas]
* `--marketplace-url TEXT`: Base URL of the Infrahub Marketplace. Overrides configuration and environment.
Expand Down
Loading