Skip to main content

opctl op install

Install an op

Synopsis

OP_REF can be either a 'host/repo-path#tag' or 'host/repo-path#tag/path'.

If auth w/ the op source fails the CLI will (re)prompt for username & password. In non-interactive terminals, the CLI will note that it can't prompt due to being in a non-interactive terminal and exit with a non zero exit code.

opctl op install OP_REF [flags]

Examples

# Install the op defined at the root of the 'github.com/opspec-pkgs/uuid.v4.generate' 
# git repository commit tagged '1.1.0' in the '.opspec/github.com/opspec-pkgs/uuid.v4.generate#1.1.0' directory
# of the current working directory.
opctl op install github.com/opspec-pkgs/uuid.v4.generate#1.1.0

Options

  -h, --help              help for install
-p, --password string Password used to auth w/ the pkg source (env $OPCTL_OP_INSTALL_PASSWORD)
--path string Path the op will be installed at (env $OPCTL_OP_INSTALL_PATH) (default ".opspec")
-u, --username string Username used to auth w/ the pkg source (env $OPCTL_OP_INSTALL_USERNAME)

Options inherited from parent commands

      --api-listen-address string   IP:PORT on which the API server will listen (env $OPCTL_API_LISTEN_ADDRESS) (default "127.0.0.1:42224")
--container-runtime string Runtime for opctl containers. Can be 'docker' (deprecated), 'k8s', or 'embedded' (env $OPCTL_CONTAINER_RUNTIME) (default "docker")
--data-dir string Path of dir used to store opctl data (env $OPCTL_DATA_DIR) (default "/root/opctl")
--dns-listen-address string IP:PORT on which the DNS server will listen (env $OPCTL_DNS_LISTEN_ADDRESS) (default "127.0.0.1:53")
--no-color Disable output coloring (env $OPCTL_NO_COLOR)

SEE ALSO