Skip to main content

package

Manage the private packages in your workspace. Learn more about private packages.

These actions affect the packages on the current branch.

Parameters

modelbit package {action} [parameters]
  • {action}: Can be one of list, add, or delete
  • --branch or -b: Optional. Sets the git branch for the command. If run from outside of a Modelbit git directory the default value is main. If run from within a Modelbit git directory then the current branch is used.

Examples

Listing private packages

List all of the private packages available on the current branch:

modelbit package list

To list packages on a specific branch:

modelbit package list --branch=my-branch

Add a private package

Add the package in wheel.whl to Modelbit's private packages:

modelbit package add path/to/my/wheel.whl

To overwrite an existing package, add --force:

modelbit package add --force path/to/my/wheel.whl

To add the package to a different branch:

modelbit package add path/to/my/wheel.whl --branch=my-branch

Delete a private package

Remove a package from private packages by specifying its name and version:

modelbit package delete {package-name} {package-version}

For example, deleting my-package==1.2.3:

modelbit package delete my-package 1.2.3

To delete the same package on a branch:

modelbit package delete my-package 1.2.3 --branch=my-branch

See also