Command-line tool for configuring npm to use the private Hiyve SDK registry.
# One command to authenticate and configure npm
npx @hiyve/cli login
After login, install Hiyve packages normally:
npm install @hiyve/rtc-client
npm install @hiyve/react @hiyve/react-ui
loginAuthenticate with Hiyve and configure npm for @hiyve packages.
# Interactive mode (prompts for API key)
npx @hiyve/cli login
# Non-interactive (CI/CD)
npx @hiyve/cli login --key sk_live_your_secret_key_here
logoutRemove Hiyve configuration from your ~/.npmrc file.
npx @hiyve/cli logout
whoamiShow current authentication status.
npx @hiyve/cli whoami
listList all available @hiyve packages.
npx @hiyve/cli list
initScaffold a new Hiyve project from a template.
npx @hiyve/cli init my-app
npx @hiyve/cli init my-app --template ai
Templates: basic, ai, full
sk_test_ or sk_live_)The login command:
~/.npmrc file:@hiyve:registry=https://api.hiyve.dev/registry/
//api.hiyve.dev/registry/:_authToken=sk_live_...
This tells npm to fetch @hiyve/* packages from the private Hiyve registry instead of the public npm registry.
For automated deployments, add registry credentials as environment variables in your CI/CD pipeline. Your project .npmrc should use variable expansion:
@hiyve:registry=https://api.hiyve.dev/registry/
//api.hiyve.dev/registry/:_authToken=${HIYVE_API_KEY}
Set HIYVE_API_KEY in your CI environment (GitHub Actions secrets, AWS SSM, etc.). npm natively expands ${ENV_VAR} in .npmrc files — no custom tooling needed.
sk_test_ or sk_live_npx @hiyve/cli loginIf you've previously logged in and your token has expired, npx may fail because npm routes all @hiyve/* packages (including the CLI) through the private registry. To fix this, remove the stale registry line from your ~/.npmrc and re-run login:
# Remove the stale @hiyve registry config
npm config delete @hiyve:registry
# Now login will work again
npx @hiyve/cli login
After login, verify your configuration:
npx @hiyve/cli whoami
Or check your ~/.npmrc manually:
cat ~/.npmrc | grep hiyve
~/.npmrc (standard npm token storage)npx @hiyve/cli logout to remove your credentials