OpenCLI Online

Enterprise

Enterprise CLI

For intranet and compliance—SSO, audit logs, private registry, and batch operations.

TypeLink
Node.js (runtime)https://nodejs.org/
npm docshttps://docs.npmjs.com/
pnpmhttps://pnpm.io/

There is no single global “enterprise CLI” website: teams usually ship internally or via a private artifact registry. Below we list all subcommands and common flags so you can operate from this site alone; external links are toolchain references only.

Overview

The enterprise module (opencli enterprise) installs, configures, and audits OpenCLI submodules inside controlled networks. It fits teams that need unified identity, traceability, and offline bundles.

Prerequisites

ToolMinimumPurpose
Node.js20 LTS+Run the CLI and some plugins
npm or pnpmnpm 10+ / pnpm 9+Global install and lockfile resolution
Git2.40+Pull config templates from an internal mirror (optional)
Corporate CA bundle—Intranet HTTPS / private npm

Note: If you only use prebuilt binaries, you can skip Node.js and use the packaged opencli executable.

Installation

npm install -g @opencli/cli@latest
  • npm install -g: installs globally so opencli is on your PATH.
  • @opencli/cli@latest: latest stable; pin a version in production (e.g. @opencli/cli@1.4.2).

Verify:

opencli --version

Option B: Offline tarball

tar -xzf opencli-enterprise-linux-x64.tar.gz
sudo mv opencli /usr/local/bin/
opencli --version
  • tar -xzf: extract the bundle.
  • sudo mv ... /usr/local/bin/: place the binary on PATH (your policy may use /opt/opencli/bin instead).

First-time setup

Sign in with corporate SSO

opencli enterprise login --tenant your-corp --sso oidc
FlagMeaning
loginStarts browser or device-code flow for refresh tokens
--tenantTenant id in your IdP
--ssoProtocol: oidc or saml

Private registry (optional)

opencli enterprise config set npm.registry https://npm.corp.example.com

Points plugin installs and similar operations at your internal mirror.


Command reference (full)

Assuming the main binary is opencli and the enterprise module is opencli enterprise. <...> placeholders, [...] optional.

Top-level help

opencli --help
opencli enterprise --help

Identity & health

CommandDescription
`opencli enterprise login [—tenant ] [—sso oidcsaml] [—no-browser]`
opencli enterprise logoutClear local tokens/session
opencli enterprise whoamiPrint tenant, user, token expiry
opencli enterprise doctorCheck Node, certs, registry, SSO, disk permissions
opencli enterprise doctor --verbose / -vVerbose diagnostics
opencli enterprise statusOne-line ops summary (similar to doctor)
opencli enterprise doctor
opencli enterprise doctor -v
opencli enterprise whoami

config

CommandDescription
opencli enterprise config get <key>Read one key (e.g. npm.registry)
opencli enterprise config set <key> <value>Set a string value
opencli enterprise config unset <key>Remove a key
opencli enterprise config listList all (secrets masked by default)
opencli enterprise config list --show-secretsInclude secrets (avoid shared terminals)
opencli enterprise config set npm.registry https://npm.corp.example.com
opencli enterprise config get npm.registry
opencli enterprise config list

audit

CommandDescription
`opencli enterprise audit export [—since 7d30d
opencli enterprise audit tail [--follow] [--lines N]Recent audit stream (requires log backend)
opencli enterprise audit export --since 30d --out ./audit.jsonl
opencli enterprise audit tail --lines 100

bundle

CommandDescription
opencli enterprise bundle pack [--output <path>] [--include-plugins]Build offline bundle; includes enabled plugins by default
opencli enterprise bundle verify <path>Verify signature and manifest
opencli enterprise bundle pack --output ./opencli-offline-bundle.tgz
opencli enterprise bundle verify ./opencli-offline-bundle.tgz

plugins

CommandDescription
opencli enterprise plugins listInstalled plugins and versions
opencli enterprise plugins list --outdatedMark upgradable entries
opencli enterprise plugins install <spec>spec: npm name, version, or tarball path
opencli enterprise plugins uninstall <name>Uninstall
opencli enterprise plugins updateUpdate all
opencli enterprise plugins update <name>Update one plugin
opencli enterprise plugins list
opencli enterprise plugins install @opencli/plugin-example@1.2.0
opencli enterprise plugins uninstall @opencli/plugin-example

Cache & misc

CommandDescription
opencli enterprise cache clearClear local HTTP/registry cache
opencli enterprise versionEnterprise module version (if separate from opencli --version)
opencli --version
opencli enterprise version
opencli enterprise cache clear

Troubleshooting

  • UNABLE_TO_VERIFY_LEAF_SIGNATURE: import the corporate root CA, or set NODE_EXTRA_CA_CERTS=/path/to/corp-ca.pem.
  • E401 on login: check NTP time skew and that --tenant matches IdP configuration.