Skip to content

docs: refresh cli page #9274

Merged
aimurphy merged 14 commits into
mainfrom
docs-lfoss-1566
Aug 2, 2025
Merged

docs: refresh cli page #9274
aimurphy merged 14 commits into
mainfrom
docs-lfoss-1566

Conversation

@mendonk
Copy link
Copy Markdown
Collaborator

@mendonk mendonk commented Jul 31, 2025

Refresh CLI page to ensure commands are still viable and clear.
Some work crossed over into the environment variables page also, which are updated with the default values and have the link-ids and outdated CLI links removed from the table.

Summary by CodeRabbit

  • Documentation
    • Improved and expanded CLI documentation with clearer instructions, updated option descriptions, and enhanced usage examples.
    • Updated environment variable documentation with revised defaults, clearer descriptions, and added new variables.
    • Adjusted placement of specific environment variable documentation for better clarity and organization.

@mendonk mendonk self-assigned this Jul 31, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 31, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

This update reorganizes and expands the Langflow documentation for CLI commands and environment variables. It revises option defaults, clarifies command usage, updates variable defaults, and improves descriptions. The placement of the LANGFLOW_ENABLE_SUPERUSER_CLI variable documentation is adjusted, and new environment variables are documented. No code or public entity changes are present.

Changes

Cohort / File(s) Change Summary
CLI Documentation Overhaul
docs/docs/Configuration/configuration-cli.mdx
Major rewrite and expansion: improved introduction, clarified CLI invocation (with uv run and direct), added and reordered options, updated and expanded descriptions for all commands, added tabbed code examples, revised defaults, added new options, clarified environment variable references, and updated requirements for some options.
Environment Variables Documentation
docs/docs/Configuration/environment-variables.mdx
Updated environment variable descriptions, removed CLI flag references, changed several default values, removed one variable, added two new variables, and made minor wording improvements for clarity and conciseness.
Authentication Variable Placement
docs/docs/Configuration/api-keys-and-authentication.mdx
Moved the documentation for LANGFLOW_ENABLE_SUPERUSER_CLI to follow LANGFLOW_AUTO_LOGIN within the authentication environment variables section; content and recommendations unchanged.

Sequence Diagram(s)

Not applicable; changes are documentation-only.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

documentation, size:L, lgtm

Suggested reviewers

  • jordanrfrazier
  • aimurphy
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs-lfoss-1566

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@mendonk mendonk requested a review from aimurphy July 31, 2025 20:35
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 31, 2025
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
docs/docs/Configuration/api-keys-and-authentication.mdx (1)

162-166: Use lowercase booleans for consistency with the rest of the docs

Every other Boolean default in the configuration docs is shown as true / false, but this paragraph uses capitalised True / False. Stick to the same lowercase form to avoid confusing readers.

-Controls the availability of the `langflow superuser` command in the Langflow CLI.
-The default is `True`, but `False` is recommended to prevent unrestricted superuser creation.
+Controls the availability of the `langflow superuser` command in the Langflow CLI.
+The default is `true`, but `false` is recommended to prevent unrestricted superuser creation.
docs/docs/Configuration/environment-variables.mdx (1)

151-156: Defaults in the table no longer match the examples below

The table now says

  • LANGFLOW_MAX_FILE_SIZE_UPLOAD default 100 (Line 173)
  • LANGFLOW_LOG_LEVEL default critical (Line 171)
  • LANGFLOW_WORKER_TIMEOUT default 300 (Line 199)

…but the .env example (Lines 79-109) and other code samples still use 10000, error, and 60000 respectively. Align these values or add a note explaining the difference, otherwise readers will not know which value actually applies.

Also applies to: 160-173, 79-98

docs/docs/Configuration/configuration-cli.mdx (2)

38-40: Minor grammar + boolean-case fix

-For example, if your set `LANGFLOW_REMOVE_API_KEYS=True` in your `.env` file, then you can change this to `False` by running the CLI with `--no-remove-api-keys`.
+For example, if you set `LANGFLOW_REMOVE_API_KEYS=true` in your `.env` file, you can change this to `false` by running the CLI with `--no-remove-api-keys`.

198-202: Option defaults look off

The “Default” column shows test and no-fix, which are flag names rather than boolean defaults. Usually you’d show true / false (or leave “Default” blank for false). Consider changing to:

-| `--test` | `test` | Boolean | Run migrations in test mode. Use `--no-test` to disable test mode. |
-| `--fix` | `no-fix` | Boolean | Fix migrations. This is a destructive operation, and all affected data will be deleted.|
+| `--test / --no-test` | `true` | Boolean | Run migrations in test mode (default). |
+| `--fix / --no-fix` | `false` | Boolean | Apply migrations (destructive). |
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 938d358 and ddee132.

📒 Files selected for processing (3)
  • docs/docs/Configuration/api-keys-and-authentication.mdx (1 hunks)
  • docs/docs/Configuration/configuration-cli.mdx (5 hunks)
  • docs/docs/Configuration/environment-variables.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
docs/docs/**/*.{md,mdx}

📄 CodeRabbit Inference Engine (.cursor/rules/docs_development.mdc)

docs/docs/**/*.{md,mdx}: All documentation content must be written in Markdown or MDX files located under docs/docs/, following the prescribed directory structure for guides, reference, how-to, concepts, and API documentation.
All documentation Markdown and MDX files must begin with a frontmatter block including at least title and description fields.
Use admonitions (:::tip, :::warning, :::danger) in Markdown/MDX files to highlight important information, warnings, or critical issues.
All images referenced in documentation must include descriptive alt text for accessibility.
All code examples included in documentation must be tested and verified to work as shown.
Internal links in documentation must be functional and not broken.
Content must follow the style guide: professional but approachable tone, second person voice, present tense, short paragraphs, sentence case headers, inline code with backticks, bold for UI elements, italic for emphasis, and parallel structure in lists.
Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Files:

  • docs/docs/Configuration/api-keys-and-authentication.mdx
  • docs/docs/Configuration/environment-variables.mdx
  • docs/docs/Configuration/configuration-cli.mdx
🧠 Learnings (7)
📓 Common learnings
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.027Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: When writing documentation for Langflow using Docusaurus, always use professional but approachable tone, second person voice for instructions, and present tense for current features.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: All terminology such as 'Langflow', 'Component', 'Flow', 'API', and 'JSON' must be capitalized or uppercased as specified in the terminology section.
📚 Learning: applies to docs/docs/**/*.{md,mdx} : use consistent terminology: always capitalize langflow, compone...
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.027Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Applied to files:

  • docs/docs/Configuration/api-keys-and-authentication.mdx
  • docs/docs/Configuration/environment-variables.mdx
  • docs/docs/Configuration/configuration-cli.mdx
📚 Learning: when writing documentation for langflow using docusaurus, always use professional but approachable t...
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: When writing documentation for Langflow using Docusaurus, always use professional but approachable tone, second person voice for instructions, and present tense for current features.

Applied to files:

  • docs/docs/Configuration/environment-variables.mdx
  • docs/docs/Configuration/configuration-cli.mdx
📚 Learning: all terminology such as 'langflow', 'component', 'flow', 'api', and 'json' must be capitalized or up...
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: All terminology such as 'Langflow', 'Component', 'Flow', 'API', and 'JSON' must be capitalized or uppercased as specified in the terminology section.

Applied to files:

  • docs/docs/Configuration/environment-variables.mdx
  • docs/docs/Configuration/configuration-cli.mdx
📚 Learning: in langflow mcp projects configuration, prefer using dynamically computed urls (like the `sse_url` v...
Learnt from: deon-sanchez
PR: langflow-ai/langflow#9158
File: src/backend/base/langflow/api/v1/mcp_projects.py:404-404
Timestamp: 2025-07-23T21:19:22.567Z
Learning: In langflow MCP projects configuration, prefer using dynamically computed URLs (like the `sse_url` variable) over hardcoded localhost URLs to ensure compatibility across different deployment environments.

Applied to files:

  • docs/docs/Configuration/environment-variables.mdx
📚 Learning: starter project files auto-format after langflow run; these formatting changes can be committed or i...
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/backend_development.mdc:0-0
Timestamp: 2025-07-18T18:25:54.486Z
Learning: Starter project files auto-format after langflow run; these formatting changes can be committed or ignored

Applied to files:

  • docs/docs/Configuration/environment-variables.mdx
📚 Learning: applies to src/backend/tests/**/*.py : test langflow's rest api endpoints in backend python tests us...
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/testing.mdc:0-0
Timestamp: 2025-07-21T14:16:14.125Z
Learning: Applies to src/backend/tests/**/*.py : Test Langflow's REST API endpoints in backend Python tests using the async client fixture and asserting response codes and payloads.

Applied to files:

  • docs/docs/Configuration/configuration-cli.mdx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Validate PR
  • GitHub Check: build-and-deploy

Comment thread docs/docs/Configuration/environment-variables.mdx
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 31, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

Copy link
Copy Markdown
Collaborator

@aimurphy aimurphy left a comment

Choose a reason for hiding this comment

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

I think the page is a lot more informative and helpful. I like the use of tabs and the information you added at the beginning. Thanks for researching the commands and options.

Comment thread docs/docs/Configuration/environment-variables.mdx Outdated
Comment thread docs/docs/Configuration/environment-variables.mdx Outdated
Comment thread docs/docs/Configuration/environment-variables.mdx Outdated
Comment thread docs/docs/Configuration/environment-variables.mdx Outdated
Comment thread docs/docs/Configuration/configuration-cli.mdx
Comment thread docs/docs/Configuration/configuration-cli.mdx Outdated
Comment thread docs/docs/Configuration/configuration-cli.mdx
Comment thread docs/docs/Configuration/configuration-cli.mdx Outdated
Comment thread docs/docs/Configuration/configuration-cli.mdx Outdated
Comment thread docs/docs/Configuration/configuration-cli.mdx Outdated
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 1, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 1, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 1, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@github-actions github-actions Bot removed the documentation Improvements or additions to documentation label Aug 1, 2025
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 1, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@mendonk mendonk requested a review from aimurphy August 1, 2025 15:33
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 1, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 2, 2025
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Aug 2, 2025

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 2, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@aimurphy aimurphy added the lgtm This PR has been approved by a maintainer label Aug 2, 2025
@aimurphy aimurphy added this pull request to the merge queue Aug 2, 2025
Merged via the queue into main with commit f370198 Aug 2, 2025
54 of 58 checks passed
@aimurphy aimurphy deleted the docs-lfoss-1566 branch August 2, 2025 15:35
2getsandesh pushed a commit to 2getsandesh/langflow-IBM that referenced this pull request Aug 6, 2025
* cli-values

* split-out-introductory-commands

* remove-feature-flag-envs

* cleanup-cli-links

* fix type

* clarification-on-cli-superuser

* remove-internal-env-vars

* alignment and editorial

* audit booleans

---------

Co-authored-by: April M <april.murphy@datastax.com>
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
@coderabbitai coderabbitai Bot mentioned this pull request Aug 11, 2025
lucaseduoli pushed a commit that referenced this pull request Aug 12, 2025
* cli-values

* split-out-introductory-commands

* remove-feature-flag-envs

* cleanup-cli-links

* fix type

* clarification-on-cli-superuser

* remove-internal-env-vars

* alignment and editorial

* audit booleans

---------

Co-authored-by: April M <april.murphy@datastax.com>
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
lucaseduoli pushed a commit that referenced this pull request Aug 22, 2025
* cli-values

* split-out-introductory-commands

* remove-feature-flag-envs

* cleanup-cli-links

* fix type

* clarification-on-cli-superuser

* remove-internal-env-vars

* alignment and editorial

* audit booleans

---------

Co-authored-by: April M <april.murphy@datastax.com>
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
lucaseduoli pushed a commit that referenced this pull request Aug 25, 2025
* cli-values

* split-out-introductory-commands

* remove-feature-flag-envs

* cleanup-cli-links

* fix type

* clarification-on-cli-superuser

* remove-internal-env-vars

* alignment and editorial

* audit booleans

---------

Co-authored-by: April M <april.murphy@datastax.com>
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
@coderabbitai coderabbitai Bot mentioned this pull request Sep 8, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants