Package CLI commands

Work with packages in your registries using Bytesafe CLI


Package commands are used to perform package actions for a specified registry.

Users specify the working registry using the working registry flag (-r or --registry) followed by the registry name.

Pull actions can be performed either using a specific upstream or from all upstreams. Push actions require users to specify an upstream destination.

List packages

Use bytesafe list command together with specified registry to list available packages within a registry.

$ bytesafe list -r 'example'

Pull a package

Use bytesafe pull command to pull a package into specified registry.

  • If no package version is specified the latest version will be pulled.
  • If no upstream is specified Bytesafe will attempt to pull from upstreams in priority order (see upstream priority for more information).

$ bytesafe pull -r 'example' package@version

pulled 'package@version'

Pull a specific package version from a specific upstream

Use bytesafe pull command on a package version together with a specified upstream to pull only from that upstream.

$ bytesafe pull -r 'example' upstream:package@version

pulled 'upstream:package@version'

Push a package to an upstream

Use bytesafe push command to push package from a registry to an upstream.

  • If no package version is specified the latest version will be pushed.
  • Push requires specifying a upstream destination registry

$ bytesafe push -r 'example' package@version 'upstream'

Pushed package: 'package' version: 'version' from: 'example' to: 'upstream'