@hiyve/cli
v1.0.5
Published
Hiyve SDK CLI - Configure npm for private @hiyve packages
Maintainers
Readme
hiyve-cli
Command-line tool for configuring npm to use the private Hiyve SDK registry.
Quick Start
# One command to authenticate and configure npm
npx hiyve-cli loginAfter login, you can install Hiyve packages normally:
npm install @hiyve/rtc-client
npm install @hiyve/auth
npm install @hiyve/auth-reactCommands
hiyve login
Authenticate with Hiyve and configure npm for @hiyve packages.
# Interactive mode (prompts for API key)
npx hiyve-cli login
# With API key as argument
npx hiyve-cli login --key mk_your_api_key_herehiyve logout
Remove Hiyve configuration from your ~/.npmrc file.
npx hiyve-cli logouthiyve whoami
Show current authentication status.
npx hiyve-cli whoamiGetting Your API Key
- Log in to the Hiyve SDK Admin Portal
- Navigate to API Keys in the sidebar
- Copy your API key (starts with
mk_)
What Does Login Do?
The login command:
- Validates your API key with the Hiyve registry
- Adds two lines to your
~/.npmrcfile:@hiyve:registry=https://console.hiyve.dev/api/registry///:_authToken=your_api_key
This tells npm to fetch @hiyve/* packages from the private Hiyve registry instead of the public npm registry.
Troubleshooting
"Invalid API key" error
- Make sure your API key starts with
mk_ - Check that your API key is 35 characters long
- Verify your account is active in the admin portal
"Connection failed" error
- Check your internet connection
- The registry may be temporarily unavailable
Packages not installing
After login, verify your configuration:
npx hiyve-cli whoamiOr check your ~/.npmrc manually:
cat ~/.npmrc | grep hiyveSecurity
- Your API key is stored in
~/.npmrc(standard npm token storage) - The API key is sent only to
console.hiyve.dev - Run
hiyve logoutto remove your credentials
Support
- Documentation: https://docs.hiyve.io
- Issues: https://github.com/hiyve/hiyve-sdk/issues
- Email: [email protected]
