diff --git a/crates/goose-cli/src/cli.rs b/crates/goose-cli/src/cli.rs index 2187a3c19ab8..76edd308dd8d 100644 --- a/crates/goose-cli/src/cli.rs +++ b/crates/goose-cli/src/cli.rs @@ -99,7 +99,12 @@ enum SessionCommand { }, #[command(about = "Remove sessions. Runs interactively if no ID or regex is provided.")] Remove { - #[arg(short, long, help = "Session ID to be removed (optional)")] + #[arg( + short, + long, + alias = "name", + help = "Session ID to be removed (optional)" + )] id: Option, #[arg(short, long, help = "Regex for removing matched sessions (optional)")] regex: Option, diff --git a/documentation/docs/guides/goose-cli-commands.md b/documentation/docs/guides/goose-cli-commands.md index 78a9b75b9b8e..60d60cf163b4 100644 --- a/documentation/docs/guides/goose-cli-commands.md +++ b/documentation/docs/guides/goose-cli-commands.md @@ -254,6 +254,7 @@ Remove one or more saved sessions. **Options:** - **`-i, --id `**: Remove a specific session by its ID +- **`-n, --name `**: Remove a specific session by its name - **`-r, --regex `**: Remove sessions matching a regex pattern. For example: **Usage:** @@ -262,6 +263,9 @@ Remove one or more saved sessions. # Remove a specific session by ID goose session remove -i 20250305_113223 +# Remove a specific session by its name +goose session remove -n my-session + # Remove all sessions starting with "project-" goose session remove -r "project-.*" @@ -280,6 +284,7 @@ Session removal is permanent and cannot be undone. Goose will show which session Export a session to Markdown format for sharing, documentation, or archival purposes. **Options:** +- **`-i, --id `**: Export a specific session by ID - **`-n, --name `**: Export a specific session by name - **`-p, --path `**: Export a specific session by file path - **`-o, --output `**: Save exported content to a file (default: stdout)