Installation
Install the CLI tool globally using npm, or use npx to run it without installation:You can use
npx username-dev without installing the package globally. This is convenient for one-off checks or when you don’t want to install packages globally.Quick Start
Check a username using thecheck command:
With global installation:
Commands
check
Check if a username is reserved.
Usage:
--api-key, -k(required): Your API key--output, -o: Output format (jsonorpretty, default:json)
version
Display the CLI version.
Usage:
help
Display help information.
Usage:
Configuration
Environment Variable
You can set your API key as an environment variable to avoid passing it on every command: Set for current session:USERNAME_DEV_API_KEY environment variable if the --api-key flag is not provided. This works with both global installation and npx.
Output Formats
JSON (default)
Pretty
Exit Codes
0: Success1: Error (invalid input, API error, etc.)
Resources
- npm package - View on npm
- GitHub repository - Source code and issues
- SDK Documentation - Use the SDK in your code
- API Documentation - Full API reference