Skip to content

Conversation

@irllyliketoast
Copy link
Contributor

This pull request addresses Issue #14173, which aims to clarify usage of grails CLI commands now that both CLI shells—grails-shell-cli and grails-forge-cli—are shipped together in Grails 7. The goal was to identify all relevant create-app and --java-version mentions and specify when -t forge is required for Grails Forge commands.

  • Main location updated: Revised the key section that confused users by explicitly adding grails -t forge where Forge-specific commands are shown.
  • --java-version references: Revised 3 files where this argument was mentioned to clarify it is a Forge-only option.
  • create-app mentions: Revised 23 files across the docs to distinguish between:
    - grails create-app: default shell (grails-shell-cli)
    - grails -t forge create-app: for Forge-specific options (e.g., --java-version)
  • In many cases, grails create-app remains correct, as per instructions from James Fredley, and was not changed. I only added -t forge where Forge command flags were present or implied
  • I tried to leave helpful inline comments where changes were made so they can be reviewed in context. I can remove them if needed or if they are not up to par with Grails guidelines.
updated with clarifications for Grails 7 and marked with // NEW: comments
clarify Forge CLI usage for --java-version commands - Updated documentation examples to explicitly use `grails -t forge` for create-app and related commands - Replaced shell prompt (`grails>`) with terminal syntax (`grails -t forge`) where appropriate - Added notes clarifying that `create-app` and similar scaffolding commands belong to grails-forge-cli - Updated --help output blocks to reflect Forge CLI behavior
Reviewed 23 documentation files and updated 19 of them, with comments, related to the `create-app` command as part of Issue apache#14173. Key changes: - Added `-t forge` flag to all instances of the `grails create-app`, `create-plugin`, and similar commands to reflect Grails 7 CLI usage. - Inserted version-specific NOTE blocks where appropriate to distinguish behavior between Grails 6 (and lower) and 7. - Retained legacy command examples where relevant for backward compatibility and historical context.
@github-actions github-actions bot added the bug label Jun 12, 2025
Copy link
Contributor

@jdaugherty jdaugherty left a comment

Choose a reason for hiding this comment

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

Let's remove the redundant comments to get started? After that, I can take another pass at this review.

fix: updated comment formatting per review
@matrei
Copy link
Contributor

matrei commented Jun 13, 2025

@irllyliketoast Thanks for taking this on! 👍
The create-app command is also available in the shell-cli. Many of the changes here suggests that it is only available in the forge-cli.

@irllyliketoast
Copy link
Contributor Author

@irllyliketoast Thanks for taking this on! 👍 The create-app command is also available in the shell-cli. Many of the changes here suggests that it is only available in the forge-cli.

I can review that again momentarily. Thank you for the clarification!

docs: clarify usage of Shell CLI vs Forge CLI in create-app and related commands - Updated multiple documentation files to reflect changes introduced in Grails 7, which now supports both the grails-shell-cli and grails-forge-cli in parallel. - Clarified that 'grails create-app' defaults to the Shell CLI, and that 'grails -t forge create-app' is only required for Forge-specific flags like --jdk. - Removed or reworded incorrect assumptions that Forge CLI is always required. - Added or updated relevant notes, examples, and flag descriptions to match actual CLI behavior. - Ensured interactive mode is correctly attributed to the Shell CLI only. - Preserved original file structure and formatting throughout. - Deletion of grails-doc/src/en/guide/REST/angularProfile.adoc due to removal of the angular profile in Grails 7 as per the instruction of James Daugherty.
@jamesfredley jamesfredley merged commit 6caf3c3 into apache:7.0.x Jun 18, 2025
70 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants