Login
Authenticate with the Fleetbase registry using `flb login` — under the hood this writes credentials into your `.npmrc`.
flb login
Log in to the Fleetbase Extension Registry using your username, password, and email. Under the hood the CLI delegates to npm-cli-login, which writes a registry auth entry into your ~/.npmrc.
flb login -u <username> -p <password> -e <email>All three of --username, --password, and --email are required.
Options
| Option | Required | Description |
|---|---|---|
-u, --username <username> | yes | Registry username |
-p, --password <password> | yes | Registry password |
-e, --email <email> | yes | Registered email address |
-r, --registry <registry> | no | Registry URL (default: https://registry.fleetbase.io) |
--scope <scope> | no | Limit credentials to a scope (e.g. @mycompany) |
--quotes <quotes> | no | npm-cli-login quotes option |
--config-path <configPath> | no | Path to a custom .npmrc |
Examples
Standard login
flb login -u jane -p secret -e jane@example.comSelf-hosted registry
flb login \
-u jane -p secret -e jane@example.com \
-r https://registry.mycompany.comScoped credentials
flb login \
-u jane -p secret -e jane@example.com \
--scope @mycompanyThis limits the credentials to packages under the @mycompany scope.
When to Use This vs. set-auth
flb loginwrites username/password/email-derived credentials. Most common for interactive use.flb set-authwrites a long-lived token (returned byflb verifyorflb generate-token). Best for CI/CD where storing a password is a non-starter.
Both end up in your ~/.npmrc (or the file at --config-path). Either works for flb publish and flb bundle-upload.
Troubleshooting
Username, password, and email are required for login. — pass all three options.
Error during login: … — the underlying npm-cli-login call failed; check that the registry URL is reachable and the credentials are correct.