Skip to content

package Command Group¤

List, (un)install, export, create, or inspect packages.

package inspect¤

Inspect the manifest of a package.

Usage
cmemc package inspect [OPTIONS] PACKAGE_PATH
Options
--key TEXT  Get a specific key only from the manifest.
--raw       Outputs raw JSON.

package list¤

List installed packages.

Usage
cmemc package list [OPTIONS]
Options
--filter <TEXT TEXT>...  Filter installed packages by one of the following
                         filter names and a corresponding value: type, name,
                         id.
--id-only                Lists only package IDs. This is useful for piping
                         the IDs into other commands.
--raw                    Outputs raw JSON.

package install¤

Install packages.

Usage
cmemc package install [OPTIONS] [PACKAGE_ID]

This command installs a package either from the marketplace or from local package archives (.cpa) or directories.

Options
-i, --input PATH        Install a package from a package archive (.cpa) or
                        directory.
--replace               Replace (overwrite) existing package version, if
                        present.
--no-cache              Disable using cached package versions.
--ignore-lock           Ignore lock file for operation. This can be
                        dangerous, use with care.
--marketplace-url TEXT  Base URL of the Marketplace - uses environment
                        variable ECCENCA_MARKETPLACE_URL if available.
                        [default: https://eccenca.market]

package uninstall¤

Uninstall installed packages.

Usage
cmemc package uninstall [OPTIONS] [PACKAGE_ID]
Options
--ignore-lock            Ignore lock file for operation. This can be
                         dangerous, use with care.
--filter <TEXT TEXT>...  Filter installed packages by one of the following
                         filter names and a corresponding value: type, name,
                         id.
-a, --all                Uninstall all packages. This is a dangerous option,
                         so use it with care.

package export¤

Export installed packages to package directories.

Usage
$ cmemc package export [OPTIONS] [PACKAGE_ID]
Options
--mime_type [text/turtle|text/turtle+pretty]
                                Choose the MIME type for graphs when
                                exporting packages.  [default:
                                text/turtle+pretty]
--filter <TEXT TEXT>...         Filter installed packages by one of the
                                following filter names and a corresponding
                                value: type, name, id.
-a, --all                       Export all installed packages.
--output-dir DIRECTORY          Create package directories in this base
                                directory.  [default: .]
--replace                       Replace (overwrite) existing files, if
                                present.

package build¤

Build a package archive from a package directory.

Usage
cmemc package build [OPTIONS] PACKAGE_DIRECTORY

This command processes a package directory, validates its content including the manifest, and creates a versioned Corporate Memory package archive (.cpa) with the following naming convention: {package_id}-v{version}.cpa

Package archives can be published to the marketplace using the package publish command.

Options
--version TEXT          Set the package version.
--replace               Replace package archive, if present.
--output-dir DIRECTORY  Create the package archive in a specific directory.
                        [default: .]

package publish¤

Publish a package archive to the marketplace server.

Usage
cmemc package publish [OPTIONS] PACKAGE_ARCHIVE
Options
--timeout INTEGER            Timeout for marketplace requests.
--marketplace-url TEXT       Base URL of the Marketplace - uses environment
                             variable ECCENCA_MARKETPLACE_URL if available.
                             [default: https://eccenca.market]
--marketplace-account TEXT   Marketplace account - uses environment variable
                             ECCENCA_MARKETPLACE_ACCOUNT if available.
--marketplace-password TEXT  Marketplace password - uses environment
                             variable ECCENCA_MARKETPLACE_PASSWORD if
                             available.

Search for available packages with a given search text.

Usage
cmemc package search [OPTIONS] [SEARCH_TERMS]...
Options
--raw                   Outputs raw JSON.
--marketplace-url TEXT  Base URL of the Marketplace - uses environment
                        variable ECCENCA_MARKETPLACE_URL if available.
                        [default: https://eccenca.market]

Comments