From 965eb34dc1df04a217ca72b843566183f9aa691d Mon Sep 17 00:00:00 2001 From: Ebony Louis <55366651+EbonyLouis@users.noreply.github.com> Date: Mon, 17 Mar 2025 12:59:44 -0400 Subject: [PATCH] docs: Add Session List To CLI Commands Guide (#1729) --- .../docs/guides/goose-cli-commands.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/documentation/docs/guides/goose-cli-commands.md b/documentation/docs/guides/goose-cli-commands.md index 228c7457..c9435edd 100644 --- a/documentation/docs/guides/goose-cli-commands.md +++ b/documentation/docs/guides/goose-cli-commands.md @@ -82,6 +82,29 @@ goose configure ``` --- +### session list [options] + +List all saved sessions. + +- **`-v, --verbose`**: (Optional) Includes session file paths in the output. +- **`-f, --format `**: Specify output format (`text` or `json`). Default is `text`. + +**Usage:** + +```bash +# List all sessions in text format (default) +goose session list +``` +```bash +# List sessions with file paths +goose session list --verbose +``` + +```bash +# List sessions in JSON format +goose session list --format json +``` +--- ### info [options]