@quantum-hub/qhubctl
v1.9.0
Published
Kipu Quantum Hub CLI
Readme
qhubctl
qhubctl, is a Command Line Interface (CLI) which lets you interact with the Kipu Quantum Hub from your terminal.
Detailed information about the supported commands can be found in our CLI reference.
Installation
Node.js 20 or higher is required. Install it via a Node version manager or a Node installer.
npm install -g @quantum-hub/qhubctlTroubleshooting: If you see
EACCES permissionserrors, use nvm or see the npm docs.
Usage
qhubctl --help
qhubctl <command> --helpDevelopment
Build
npm install
npm run buildCompiles TypeScript from src/ to dist/.
The CLI entry point is dist/main.js.
Run locally
node dist/main.js <command>Watch mode
For active development, run the TypeScript compiler in watch mode so every file save triggers an incremental rebuild:
npm run devqhubctl will reflect your latest changes on the next invocation without any manual rebuild step.
Linking globally with npm link
npm link registers a global qhubctl symlink that points permanently to dist/main.js in your local checkout. Run it once after the initial setup:
npm run build
npm link
qhubctl <command> # now resolves to your local buildThe symlink persists across rebuilds and watch-mode recompiles — you never need to run npm link again unless you delete and re-clone the repo or change the "bin" entry in package.json.
Note:
npm linkand a globally installed published version of qhubctl are mutually exclusive — they occupy the same path. The last one to run wins. Usewhich qhubctlorqhubctl --versionto confirm which is currently active.
To switch back to the published version from npm:
npm unlink -g @quantum-hub/qhubctl # removes the local symlink
npm install -g @quantum-hub/qhubctl # installs the published versionTo go back to your local dev version:
npm linkRun against staging
node dist/main.js login --base-path https://api.hub.34.90.225.20.nip.io -t <personal access token>Debug output
Set DEBUG=* to print all debug output:
DEBUG=* node dist/main.js <command>On Windows, set the variable separately:
set DEBUG=*
node dist\main.js <command>Tests
npm test # run tests + lint
npm run test:coverage # run tests with lcov coverage reportLint
npm run lintGenerate docs
Produces a Markdown CLI reference at docs/cli-reference.md from the compiled program:
npm run build
npm run docs:generateRegenerating the API client
The generated clients in src/client/ are produced from the platform OpenAPI specs using openapi-generator-cli.
npm install -g @openapitools/openapi-generator-cliAgainst production:
openapi-generator-cli generate -g typescript-fetch \
-i https://api.hub.kipu-quantum.com/qc-catalog/docs \
-o src/client/kqh
openapi-generator-cli generate -g typescript-fetch \
-i https://api.hub.kipu-quantum.com/user-service/docs \
-o src/client/usersAgainst staging:
openapi-generator-cli generate -g typescript-fetch \
-i https://api.hub.34.90.225.20.nip.io/qc-catalog/docs \
-o src/client/kqh
openapi-generator-cli generate -g typescript-fetch \
-i https://api.hub.34.90.225.20.nip.io/user-service/docs \
-o src/client/usersLicense
Apache-2.0 | Copyright 2026-now Kipu Quantum GmbH
