Skip to content

feat: Add Registry Developer Account Registration#2

Open
roncodes wants to merge 1 commit intomainfrom
feature/registry-developer-account-registration
Open

feat: Add Registry Developer Account Registration#2
roncodes wants to merge 1 commit intomainfrom
feature/registry-developer-account-registration

Conversation

@roncodes
Copy link
Member

Overview

This PR adds the flb register command to enable users to create Registry Developer Accounts directly from the CLI.

Changes

New Command: flb register

Adds a new registration command with the following features:

  • Interactive prompts for username, email, password, and optional full name
  • Input validation:
    • Username: min 3 characters, alphanumeric with hyphens/underscores only
    • Email: valid email format required
    • Password: min 8 characters required
  • API integration: Calls POST /~registry/v1/developer-account/register
  • Error handling: Displays validation errors from API responses
  • User guidance: Provides clear next steps after successful registration

Usage

# Interactive mode
flb register

# With options
flb register -u myusername -e user@example.com -p mypassword -n "John Doe"

Output Example

✓ Account created successfully!
✓ Please check your email to verify your account.

✓ Once verified, you can login with: flb login -u myusername

Benefits

✅ Seamless onboarding for self-hosted users
✅ No need to visit web interface for registration
✅ Consistent CLI experience
✅ Clear validation and error messages

Testing

  • Test interactive registration flow
  • Test registration with command-line options
  • Test validation error handling
  • Test API error handling
  • Test success message and guidance

Related

This PR works in conjunction with the registry-bridge PR #27 that implements the backend support for Registry Developer Accounts.

- Add 'flb register' command for creating Registry Developer Accounts
- Interactive prompts for username, email, password, and name
- Input validation for username format and password length
- Calls /~registry/v1/developer-account/register API endpoint
- Provides clear success/error messages
- Guides users to login after successful registration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments