code-package
Manage code package assets in a deployment space.
Extended description
A code package is a way of organizing a set of dependent files in a folder structure. Each code package has a main executable file that in turn accesses other files in the code package. For example, a code package can contain a notebook file that calls other notebook files or functions in scripts in the folder structure in a notebook job. With code packages, you can start a job on a collection of dependent files and not on one file only.
Prerequisites
cpd-cli
- Before you run any
cpd-cli
commands, ensure that you downloaded thecpd-cli
12.0.6 command line utility for your operating system and Cloud Pak for Data edition from: https://github.com/IBM/cpd-cli/releases. - Common core services
- The
code-package
commands are relevant only when common core services are installed.
Required permissions
The code-package
command requires
cluster administrator or similar roles.
Commands
Command | Description |
---|---|
code-package create |
Create a code package in the specified project or space. |
code-package delete |
Delete a code package in the specified project or space. |
code-package get |
Retrieve a code package in the specified project or space. |
code-package list |
List all code packages in the specified project or space. |