ocm create componentarchive [<options>] <component> <version> --provider <provider-name> {--provider <label>=<value>} {<label>=<value>}
componentarchive, comparch, ca
-F, --file string target file/directory (default "component-archive")
-f, --force remove existing content
-h, --help help for componentarchive
-p, --provider stringArray provider attribute
-S, --scheme string schema version (default "v2")
-t, --type string archive format (directory, tar, tgz) (default "directory")
Create a new component archive. This might be either a directory prepared to host component version content or a tar/tgz file (see option --type).
A provider must be specified, additional provider labels are optional.
The --type
option accepts a file format for the
target archive to use. It is only evaluated if the target
archive does not exist yet. The following formats are supported:
- directory
- tar
- tgz
The default format is directory
.
If the option --scheme
is given, the specified component descriptor format is used/generated.
The following schema versions are supported for explicit conversions:
ocm.software/v3alpha1
v2
(default)
$ ocm create componentarchive --file myfirst --provider acme.org --provider [email protected] acme.org/demo 1.0
- ocm create — Create transport or component archive
- ocm — Open Component Model command line client