Skip to content

Go: rename ragflow_cli to ragflow-cli - #16270

Merged
JinHai-CN merged 3 commits into
infiniflow:mainfrom
JinHai-CN:fix482
Jun 23, 2026
Merged

JinHai-CN merged 3 commits into
infiniflow:mainfrom
JinHai-CN:fix482

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

What problem does this PR solve?

rename ragflow cli binary

Type of change

  • Refactoring

@JinHai-CN JinHai-CN added the ci Continue Integration label Jun 23, 2026
@coderabbitai

coderabbitai Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

All references to the CLI binary name are renamed from ragflow_cli (underscore) to ragflow-cli (hyphen) across the CI release workflow, build scripts, installer scripts (Bash and PowerShell), CLI help text, a source comment, and developer documentation files.

Changes

CLI Binary Rename: ragflow_cli → ragflow-cli

Layer / File(s) Summary
Build script and CI release workflow
build.sh, .github/workflows/release.yml
RAGFLOW_CLI_BINARY in build.sh and CLI_NAME/CLI_MAIN env vars in the build_cli CI job are updated from underscore to hyphen naming, changing the produced binary filename and Go entry-point path.
Installer scripts and asset docs
tools/scripts/install.sh, tools/scripts/install.ps1, tools/scripts/INSTALL_SCRIPTS_README.md
Default CLI_NAME in the Bash installer, default $CliName in the PowerShell installer, and all release asset name patterns in the installer README are updated to ragflow-cli.
CLI help text, source comment, and developer docs
internal/cli/cli.go, internal/agent/component/runtime_wire.go, internal/cli/README.md, internal/development.md
PrintUsage() and printHelp() example invocations, a blank-import comment, the CLI README build/run commands, and the internal development guide are updated to reference ragflow-cli.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • infiniflow/ragflow#16036: Introduced the install scripts, release workflow, and docs for the ragflow_cli binary that this PR renames to ragflow-cli.
  • infiniflow/ragflow#16082: Also modifies the build_cli job in .github/workflows/release.yml that this PR updates for the CLI name change.

Suggested labels

☯️ refactor, 📖 documentation, size:XS

Poem

🐇 A hyphen hops in, the underscore's gone,
ragflow-cli now carries the dawn.
From build scripts to docs, the name snaps in place,
One dash makes it cleaner — a tidy embrace.
The rabbit approves with a wiggle and cheer! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is largely incomplete. While it identifies the refactoring change, it lacks required context explaining the rationale or problem being solved by this renaming. Expand the description to explain why this naming convention change is necessary (e.g., consistency, best practices, user expectations) to help reviewers understand the full context.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: renaming the CLI binary from ragflow_cli to ragflow-cli, which aligns with the changeset across all modified files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JinHai-CN
JinHai-CN marked this pull request as ready for review June 23, 2026 09:49
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 23, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@build.sh`:
- Line 20: The RAGFLOW_CLI_BINARY variable assignment uses the old file path
naming convention. Update the build source path in the RAGFLOW_CLI_BINARY
assignment from cmd/ragflow_cli.go (underscore convention) to cmd/ragflow-cli.go
(hyphen convention) to match the naming used in the release workflow. This
ensures that both local builds via build.sh and CI builds through the release
workflow reference the same source file path and prevents build inconsistencies.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f6eb629d-8438-4166-b145-3ba6a929c648

📥 Commits

Reviewing files that changed from the base of the PR and between a4f325b and 56dd9be.

📒 Files selected for processing (9)
  • .github/workflows/release.yml
  • build.sh
  • internal/agent/component/runtime_wire.go
  • internal/cli/README.md
  • internal/cli/cli.go
  • internal/development.md
  • tools/scripts/INSTALL_SCRIPTS_README.md
  • tools/scripts/install.ps1
  • tools/scripts/install.sh

Comment thread build.sh
ADMIN_SERVER_BINARY="$PROJECT_ROOT/bin/admin_server"
INGESTOR_BINARY="$PROJECT_ROOT/bin/ingestor"
RAGFLOW_CLI_BINARY="$PROJECT_ROOT/bin/ragflow_cli"
RAGFLOW_CLI_BINARY="$PROJECT_ROOT/bin/ragflow-cli"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

CLI rename is incomplete in build.sh entrypoint wiring.

RAGFLOW_CLI_BINARY was renamed, but this script still builds from cmd/ragflow_cli.go while the release workflow uses ./cmd/ragflow-cli.go. Keep both paths aligned to avoid local-vs-CI build drift/failures.

Suggested fix
+RAGFLOW_CLI_MAIN="$PROJECT_ROOT/cmd/ragflow-cli.go"
@@
-        go build -o "$RAGFLOW_CLI_BINARY" cmd/ragflow_cli.go
+        go build -o "$RAGFLOW_CLI_BINARY" "$RAGFLOW_CLI_MAIN"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@build.sh` at line 20, The RAGFLOW_CLI_BINARY variable assignment uses the old
file path naming convention. Update the build source path in the
RAGFLOW_CLI_BINARY assignment from cmd/ragflow_cli.go (underscore convention) to
cmd/ragflow-cli.go (hyphen convention) to match the naming used in the release
workflow. This ensures that both local builds via build.sh and CI builds through
the release workflow reference the same source file path and prevents build
inconsistencies.

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (643cb47) to head (135639a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16270   +/-   ##
=======================================
  Coverage   93.16%   93.16%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          668      668           
  Misses         29       29           
  Partials       20       20           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JinHai-CN
JinHai-CN merged commit 4971486 into infiniflow:main Jun 23, 2026
3 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 23, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant