Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions cmd/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ func selectProfile(logger logger.Logger) string {
}

var profileCmd = &cobra.Command{
Use: "profile",
Args: cobra.NoArgs,
Short: "Manage profiles",
Use: "profile",
Args: cobra.NoArgs,
Aliases: []string{"profiles", "prf", "ctx"},
Short: "Manage profiles",
Long: `Manage CLI configuration profiles.

Use the subcommands to create and switch between different configuration profiles.`,
Expand All @@ -85,9 +86,10 @@ Use the subcommands to create and switch between different configuration profile
}

var profileUseCmd = &cobra.Command{
Use: "use [name]",
Args: cobra.MaximumNArgs(1),
Short: "Use a different profile",
Use: "use [name]",
Aliases: []string{"select"},
Args: cobra.MaximumNArgs(1),
Short: "Use a different profile",
Long: `Switch to a different configuration profile.

Arguments:
Expand All @@ -98,7 +100,6 @@ If no name is provided, you will be prompted to select a profile.
Examples:
agentuity profile use dev
agentuity profile use`,
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {
logger := env.NewLogger(cmd)
var name string
Expand All @@ -125,17 +126,17 @@ Examples:
}

var profileCreateCmd = &cobra.Command{
Use: "create",
Args: cobra.NoArgs,
Short: "Create a new empty profile",
Use: "create",
Aliases: []string{"new", "add"},
Args: cobra.NoArgs,
Short: "Create a new empty profile",
Long: `Create a new empty configuration profile.

This command creates a new configuration profile with a unique name.
You will be prompted to enter a name for the profile.

Examples:
agentuity profile create`,
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {
logger := env.NewLogger(cmd)
profiles := fetchProfiles()
Expand Down
Loading