Skip to content

Conversation

@joshrotenberg
Copy link
Collaborator

Summary

Implements the missing profile management commands: set, remove, and default.

Features

Profile Set

  • Create new profiles or update existing ones
  • Overwrite protection with confirmation prompt
  • Password prompting for Enterprise profiles when not provided via CLI
  • Automatic suggestion to set as default for first/only profile

Profile Remove

  • Delete profiles with confirmation prompt
  • Warning when removing the default profile
  • Clears default profile if the removed profile was default

Profile Default

  • Set the default profile
  • Validates that the profile exists

Safety Features

  • ✅ Confirmation prompts before overwriting existing profiles
  • ✅ Confirmation prompts before removing profiles
  • ✅ Warning when removing the default profile
  • ✅ Secure password entry for Enterprise profiles
  • ✅ Profile existence validation

Testing

# List profiles
redisctl profile list

# Set default profile
redisctl profile default cloud

# Create new profile (with overwrite protection)
redisctl profile set test-cloud --deployment cloud --api-key KEY --api-secret SECRET

# Remove profile (with confirmation)
redisctl profile remove test-cloud

Fixes #181

Release Note

This is a feature addition that will trigger a minor version bump (v0.3.0 → v0.4.0) when merged.

Implements profile set, remove, and default commands with safety features:

- profile set: Create/update profiles with overwrite protection
- profile remove: Delete profiles with confirmation prompt
- profile default: Set the default profile

Safety features:
- Confirmation prompts before overwriting existing profiles
- Confirmation prompts before removing profiles
- Warning when removing the default profile
- Password prompting for Enterprise profiles when not provided
- Automatic default profile suggestion for first/only profile

Fixes #181
@joshrotenberg joshrotenberg merged commit 3294523 into main Sep 8, 2025
12 checks passed
@joshrotenberg joshrotenberg deleted the feat/profile-management branch September 8, 2025 22:49
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.

fix: complete unimplemented profile management commands

2 participants