Skip to main content
You can upload, download, copy, move, search, and remove packages in Package Security Manager from the command line. For general information about managing packages in the GUI, see Packages.

Searching for packages

Use the search command to locate packages in your repository:
The return provides a list of channels containing the package, along with version, family, build, license, and platform information:

Viewing channel packages

To view the packages in a channel:

Viewing package details

To view the details of a channel’s packages:
This returns a JSON-formatted list of all files in the channel and their metadata, including CKEY, CVE score, CVE status, file name, package name, platform, and version.
On channels with many files, this command can take several minutes. To return only one package’s files, use <CHANNEL_NAME>::<PACKAGE_NAME> instead of the channel name.

Uploading to a channel

To upload an asset (package, project, notebook, environment) to your default channel in Package Security Manager:
The CLI can’t detect the type of .conda files. When you upload a .conda file, add --package-type conda.
You can upload multiple assets at the same time:
To specify a destination channel:
General resource artifact (GRA) uploads require additional information:

Downloading a notebook

To download a notebook and save it to the current working directory:
To specify a target directory and optionally rename the file:
If you do not include a filename with the directory path, the notebook’s original filename is used.

Copying a package

To copy a package to another channel (the original remains in the source channel):
To copy to a subchannel:

Moving a package

To move a package to another channel (the package is removed from the source channel):
To move to a subchannel:

Removing a package

To remove a package from a channel:
To remove a package from a subchannel: