Skip to content

Commit

Permalink
Merge pull request #604 from plumbis/cli-update
Browse files Browse the repository at this point in the history
update cli commands to new syntax
  • Loading branch information
phisco authored Nov 6, 2023
2 parents bce3572 + c23abdb commit 184fcc1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions content/master/concepts/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Configuration Packages
description: "Packages combine multiple Crossplane resources into a single, portable, OCI image."
altTitle: "Crossplane Packages"
weight: 200
---

A _Configuration_ package is an
Expand Down Expand Up @@ -430,8 +431,9 @@ spec:

### Build the package

Create the package using the Crossplane CLI command
`crossplane build configuration -f <directory>`.
Create the package using the
[Crossplane CLI]({{<ref "../cli">}}) command
`crossplane xpkg build -f <directory>`.

Where the `<directory>` is the directory containing the `crossplane.yaml` file
and any Composition or CompositeResourceDefinition YAML files.
Expand All @@ -442,7 +444,7 @@ include in the package.
{{<hint "important" >}}
You must ignore any other YAML files with `--ignore=<file_list>`.
For
example, `crossplane build configuration -f test-directory --ignore=".tmp/*"`.
example, `crossplane xpkg build -f test-directory --ignore=".tmp/*"`.

Including YAML files that aren't Compositions or CompositeResourceDefinitions,
including Claims isn't supported.
Expand Down Expand Up @@ -470,7 +472,7 @@ For example, to build a package from a directory named `test-directory` and
generate a package named `test-package.xpkg` use the command:

```shell
crossplane build configuration -f test-directory --name=test-package
crossplane xpkg build -f test-directory --name=test-package
```

Crossplane automatically adds the `.xpkg` extension.
Expand Down
9 changes: 5 additions & 4 deletions content/v1.14/concepts/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,9 @@ spec:

### Build the package

Create the package using the Crossplane CLI command
`crossplane build configuration -f <directory>`.
Create the package using the
[Crossplane CLI]({{<ref "../cli">}}) command
`crossplane xpkg build -f <directory>`.

Where the `<directory>` is the directory containing the `crossplane.yaml` file
and any Composition or CompositeResourceDefinition YAML files.
Expand All @@ -443,7 +444,7 @@ include in the package.
{{<hint "important" >}}
You must ignore any other YAML files with `--ignore=<file_list>`.
For
example, `crossplane build configuration -f test-directory --ignore=".tmp/*"`.
example, `crossplane xpkg build -f test-directory --ignore=".tmp/*"`.

Including YAML files that aren't Compositions or CompositeResourceDefinitions,
including Claims isn't supported.
Expand Down Expand Up @@ -471,7 +472,7 @@ For example, to build a package from a directory named `test-directory` and
generate a package named `test-package.xpkg` use the command:

```shell
crossplane build configuration -f test-directory --name=test-package
crossplane xpkg build -f test-directory --name=test-package
```

Crossplane automatically adds the `.xpkg` extension.
Expand Down

0 comments on commit 184fcc1

Please sign in to comment.