Uploading a package¶
After you have downloaded and logged into the CLI and created a channel, you can upload a package to the channel.
To upload a package, in a terminal enter:
anaconda-enterprise-cli upload path/to/pkgs/notebookname.bz2 --channel <username>/<channelname>
NOTE: Replace path/to/pkgs with the actual path to the package you want to upload, and <username>/<channelname> with the actual username and channel name.
Setting a default channel¶
NOTE: There is no default_channel in a fresh install until you create it.
You will have to enter the specific channel each time.
If you don’t want to enter the --channel option with each command, you
can set a default channel:
anaconda-enterprise-cli config set default_channel <username>/<channelname>
To display your current default channel:
$ anaconda-enterprise-cli config get default_channel
'<username>/<channelname>'
After setting the default channel, upload to your default channel:
anaconda-enterprise-cli upload <path/to/pkgs/packagename.bz2>
NOTE: Replace <path/to/pkgs/packagename.bz2> with the actual path to the
package you want to upload.
Viewing uploaded packages¶
To see the packages you have uploaded, log onto the Enterprise web interface. Then from the top menu, click Packages. You will see a list of all packages you have uploaded.