Install the CLI
Verify an approved CLI archive, add oc to your path and manage updates.
Install oc from the archive supplied for your operating system. Verify the package before running it, then check the installed version.
- Choose your platform archiveUse the supplied release and its trusted checksum.
- Verify the downloadCheck the SHA-256 before running the installer.
- Install and check PATHMake the oc executable available to your shell.
- Confirm the versionRun oc version; database access is checked separately.
Get the right package
Preview 0.6.0-dev.20261020 requires an approved archive, install.py and SHA256SUMS. A public stable download is not available yet.
| Platform | Target |
|---|---|
| Windows x64 | windows-amd64 |
| Linux x64 / ARM64 | linux_amd64 / linux_arm64 |
| macOS Intel / Apple Silicon | darwin_amd64 / darwin_arm64 |
There is no Windows ARM64 or universal Mac package in this preview.
Verify and install
Have all three items ready: the archive for your platform, the supplied installer and the trusted archive digest. The digest identifies the bytes you expect; the executable's reported version identifies the program that actually runs.
Use Python 3.9 or newer. Replace TRUSTED_SHA256 with the digest supplied through your trusted package-delivery channel, not a value from an unverified download.
python install.py --archive originchaindb-cli-0.6.0-dev.20261020-windows-amd64.zip --sha256 TRUSTED_SHA256The installer checks the hash and executable, keeps a recovery copy and does not need administrator access. To choose a directory without changing PATH:
python3 install.py --archive PACKAGE --sha256 TRUSTED_SHA256 --directory INSTALL_DIRECTORY --no-pathUse python on Windows. Quote paths that contain spaces.
Check the installation
On Windows, open a new terminal after installation; the installer normally updates user PATH. On Linux and macOS, follow the PATH instruction it prints or use the executable's full path.
oc version
oc help
oc ui --render --plainCheck that oc version matches the preview you installed. If it reports another version, another oc executable may be earlier on PATH.
The last command shows the menu offline. These checks verify the local installation, not database access. Continue with connection setup when they work.
Save credentials securely
| Operating system | Store | Before saving |
|---|---|---|
| Windows | Credential Manager | Use your normal user session. |
| macOS | Keychain | Unlock your user Keychain. |
| Linux | Secret Service | Install secret-tool and unlock the store. |
Debian and Ubuntu provide secret-tool in libsecret-tools. The CLI does not fall back to a plaintext file. In headless jobs, supply environment credentials through your secret manager.
Account administration
Management commands need the preview's compatible console login flow. Organization changes also need a separately approved org:admin token and matching permissions. Database queries still use an engine profile.
Update a verified release
Use the updater only when a signed release manifest and publisher key have been supplied. Check first, then install:
oc update --manifest MANIFEST_HTTPS_URL --public-key TRUSTED_ED25519_PUBLIC_KEY --check
oc update --manifest MANIFEST_HTTPS_URL --public-key TRUSTED_ED25519_PUBLIC_KEYThis preview requires --public-key. The updater verifies signature, expiry, version, platform, size and SHA-256 over HTTPS. It refuses redirects and concurrent updates. A manifest URL is not evidence that a stable release exists.
Recover or uninstall
- Recover: close CLI processes, restore the previous executable reported by the updater and run
oc version. After a Windows crash, that backup may have a.previoussuffix. - Unlock: remove a stale update lock only after confirming that no update is running.
- Downgrade: restore a known-good executable manually.
- Uninstall: remove saved credentials and profiles, then delete the executable, recovery copies and unused PATH entry. Revoke remote credentials separately.
Build from source
With Go 1.23 or newer, run these commands from an approved CLI source checkout:
go build -o oc ./cmd/oc
./oc helpOn Windows, use go build -o oc.exe ./cmd/oc and ./oc.exe help. Source builds are unsigned. See the checkout's RELEASING.md for packaging and the developer checks before distributing a build.