Skip to content

Conversation

@Swiftwork
Copy link
Contributor

@Swiftwork Swiftwork commented Feb 26, 2025

CLI Package Overview

The @bucketco/cli provides a command-line interface for interacting with the Bucket service. It enables feature flag management and configuration from the terminal.

Key Features

  • Authentication: auth command for logging in/out of Bucket service
  • Project Setup: init command for initializing the Bucket CLI
  • Feature Management: features command for listing and creating feature flags
  • App Management: apps command for listing available apps
  • Type Generation: Automatic TypeScript type generation for feature flags

Technical Details

  • Built with TypeScript and Commander.js for CLI framework
  • Uses ora for spinner animations and chalk for terminal styling
  • Configuration stored in bucket.config.json
  • Auth tokens stored in ~/.bucket-auth file
  • Requires Node.js >= 18.0.0

Key Commands

bucket init        # Initialize new configuration
bucket auth login  # Authenticate with Bucket service 
bucket features    # List and manage feature flags
bucket apps list   # List available apps
bucket new         # Create new feature flag

The CLI integrates with Bucket's API to provide a streamlined workflow for managing feature flags and configurations from the command line.

@Swiftwork Swiftwork added the enhancement New feature or request label Feb 26, 2025
@Swiftwork Swiftwork self-assigned this Feb 26, 2025
@Swiftwork Swiftwork mentioned this pull request Feb 26, 2025
@Swiftwork Swiftwork requested a review from roncohen February 26, 2025 16:03
@Swiftwork Swiftwork marked this pull request as ready for review February 26, 2025 16:03
@Swiftwork
Copy link
Contributor Author

@roncohen test it out and tell me if it makes sense or is missing something :)

Copy link
Contributor

@roncohen roncohen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a great start! Let's get this in and dogfood it to see what else comes up 👍

@Swiftwork
Copy link
Contributor Author

I'll get this in then to continue writing tests and packaging the solution

@Swiftwork Swiftwork merged commit 7f868ed into main Mar 3, 2025
5 checks passed
@Swiftwork Swiftwork deleted the feat/new-bucket-cli branch March 3, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants