Skip to content

docs(cli): Clean up CLI command structure and improve documentation#594

Merged
vishal-bala merged 32 commits into
mainfrom
cli/RAAE-1554/cli-help-and-structure
Apr 30, 2026
Merged

docs(cli): Clean up CLI command structure and improve documentation#594
vishal-bala merged 32 commits into
mainfrom
cli/RAAE-1554/cli-help-and-structure

Conversation

@vishal-bala
Copy link
Copy Markdown
Collaborator

@vishal-bala vishal-bala commented Apr 27, 2026

Motivation

This PR improves the discoverability of the existing rvl CLI surface without changing the public command model. Before this change, the top-level help was sparse, rvl index did not present its operations as proper documented subcommands, and the docs did not clearly mirror the current command tree. That made it harder to understand the intended workflows directly from the terminal, especially for maintainers and support engineers who need to inspect the available commands quickly.

Changes

This change keeps the top-level surface unchanged at index, stats, version, and mcp, but refines the argparse wiring so the help output reads like a deliberate interface. rvl --help now lists the command groups with short purpose text and representative examples, rvl index --help exposes create, info, listall, delete, and destroy as proper documented subcommands, and rvl stats --help now explains the expected inputs and shows both index-name and schema-path examples along with a Redis connection example. The MCP help text was also aligned to use direct rvl mcp ... examples where the CLI is already assumed to be installed.

The documentation changes keep the written guidance in sync with the runtime help. The README now reflects the revised top-level help and points readers to the richer index and stats help entrypoints, while the CLI notebook now documents the full current command tree rather than only the top-level groups.


Note

Medium Risk
Primarily refactors argparse wiring for rvl, rvl index, and rvl stats; while intended to be behavior-preserving, changes to command parsing/help text could impact existing scripts relying on previous usage/error behavior.

Overview
Improves rvl CLI discoverability by expanding top-level --help output with command-group descriptions and examples, and by documenting rvl index operations as proper argparse subcommands (create, info, listall, delete, destroy) with per-command help/epilog text.

Enhances rvl stats help text similarly, reorganizes shared CLI flags in cli/utils.py into clearer argument groups (index selection vs Redis connection), and aligns rvl mcp help examples to assume an installed rvl binary.

Updates README and the CLI user-guide notebook to match the revised help/command tree, and adjusts unit tests to reflect the new help text and parsing structure.

Reviewed by Cursor Bugbot for commit 71a6711. Bugbot is set up for automated code reviews on this repo. Configure here.

@vishal-bala vishal-bala self-assigned this Apr 27, 2026
@vishal-bala vishal-bala added the auto:patch Increment the patch version when merged label Apr 27, 2026
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented Apr 27, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

…i/RAAE-1554/cli-help-and-structure

# Conflicts:
#	redisvl/cli/index.py
@vishal-bala vishal-bala changed the base branch from main to feat/RAAE-1557/cli-json April 30, 2026 14:56
@vishal-bala vishal-bala marked this pull request as ready for review April 30, 2026 14:57
Comment thread redisvl/cli/index.py
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 71fbb5c. Configure here.

Comment thread redisvl/cli/index.py
Base automatically changed from feat/RAAE-1557/cli-json to main April 30, 2026 15:55
Copy link
Copy Markdown
Collaborator

@nkanu17 nkanu17 left a comment

Choose a reason for hiding this comment

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

LGTM!

One minor thing:

  • the shared flags (--url, --host, --json, etc.) now only work after the subcommand (rvl index listall --url ..), not before it (rvl index --url ... listall), which seems like a subtle backward-incompatible change from the old single-parser design. Worth confirming no existing scripts or docs use the flags-before-subcommand ordering, otherwise looks good

…p-and-structure

# Conflicts:
#	redisvl/cli/index.py
#	tests/unit/test_cli_index.py
#	tests/unit/test_cli_stats.py
#	tests/unit/test_cli_utils.py
@vishal-bala vishal-bala added the auto:release Create a release when this PR is merged label Apr 30, 2026
@vishal-bala vishal-bala merged commit af832ef into main Apr 30, 2026
57 checks passed
@applied-ai-release-bot
Copy link
Copy Markdown

🚀 PR was released in v0.18.1 🚀

@applied-ai-release-bot applied-ai-release-bot Bot added the released This issue/pull request has been released. label Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto:patch Increment the patch version when merged auto:release Create a release when this PR is merged released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants