Skip to content
Closed
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/+marketplace-browsing.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added `infrahubctl marketplace list`, `search`, and `show` commands for browsing schemas and collections on the Infrahub Marketplace.
67 changes: 67 additions & 0 deletions docs/docs/infrahubctl/infrahubctl-marketplace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,75 @@ $ infrahubctl marketplace [OPTIONS] COMMAND [ARGS]...

**Commands**:

* `show`: Show full details of a schema or...
* `list`: List schemas (default) or collections...
* `search`: Search the Infrahub Marketplace for...
* `get`: Fetch a schema or collection from the...

## `infrahubctl marketplace show`

Show full details of a schema or collection from the Infrahub Marketplace.

**Usage**:

```console
$ infrahubctl marketplace show [OPTIONS] IDENTIFIER
```

**Arguments**:

* `IDENTIFIER`: Schema or collection identifier in namespace/name format [required]

**Options**:

* `-c, --collection`: Force collection lookup. Default: auto-detect whether the identifier is a schema or collection.
* `--json`: Output raw JSON to stdout instead of a table.
* `--marketplace-url TEXT`: Base URL of the Infrahub Marketplace. Overrides configuration and environment.
* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
* `--help`: Show this message and exit.

## `infrahubctl marketplace list`

List schemas (default) or collections available on the Infrahub Marketplace.

**Usage**:

```console
$ infrahubctl marketplace list [OPTIONS]
```

**Options**:

* `--collections`: List collections instead of schemas.
* `-l, --limit INTEGER`: Maximum number of results to display.
* `--json`: Output raw JSON to stdout instead of a table.
* `--marketplace-url TEXT`: Base URL of the Infrahub Marketplace. Overrides configuration and environment.
* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
* `--help`: Show this message and exit.

## `infrahubctl marketplace search`

Search the Infrahub Marketplace for schemas (default) or collections.

**Usage**:

```console
$ infrahubctl marketplace search [OPTIONS] TERM
```

**Arguments**:

* `TERM`: Search term matched against name, display name, and description. [required]

**Options**:

* `--collections`: Search collections instead of schemas.
* `-l, --limit INTEGER`: Maximum number of results to display.
* `--json`: Output raw JSON to stdout instead of a table.
* `--marketplace-url TEXT`: Base URL of the Infrahub Marketplace. Overrides configuration and environment.
* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
* `--help`: Show this message and exit.

## `infrahubctl marketplace get`

Fetch a schema or collection from the Infrahub Marketplace.
Expand Down
Loading