Answer: You pass arguments to a Gemini CLI custom command by including the special placeholder `{{args}}` in your command's `prompt`; the CLI replaces that placeholder with the text the user typed after the command name. Status: Confirmed Entry: tool/gemini-cli/commands-and-shortcuts/custom-command-arguments Revision: 1 Digest: sha256:33bf1601e8efb71d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:26Z Last changed: 2026-11-13T03:17:26Z Last verified: 2026-11-20T12:50:48Z Next check: 2026-11-21T12:50:48Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of placeholder | {{args}} | [1] | 2026-11-20 replacement behavior | replace that placeholder with the text the user typed after the command name | [1] | 2026-11-20 raw injection behavior | the arguments are injected exactly as the user typed them | [1] | 2026-11-20 Sources: [1] Google. "Custom commands". https://geminicli.com/docs/cli/custom-commands.md Role: primary. Accessed: 2026-11-20T12:50:48Z Quote: "If your `prompt` contains the special placeholder `{{args}}`, the CLI will" (Supports: placeholder) Quote: "replace that placeholder with the text the user typed after the command name." (Supports: replacement behavior) Quote: "When used in the main body of the prompt, the arguments are injected exactly as the user typed them." (Supports: raw injection behavior) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 8f3295e8ca502b0c70bb3bf672f0dc0130ecb868fad4a88d5cac0f36ac6f3872 (captured 2026-11-13T03:17:24Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:17:26Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:50:48Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:50:48Z Last attempt: 2026-11-20T12:50:48Z Notes and limitations: Extracted automatically from a single official source (section "Handling arguments"). Related: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/custom-command-file-locations-precedence Where does Gemini CLI look for custom command files and which location takes precedence? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/customize-keybindings How do I customize keybindings in Gemini CLI? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts What keyboard shortcuts does Gemini CLI have for editing input and navigating history? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/browse-past-sessions How do I browse and load past Gemini CLI sessions? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/cli-options What CLI options are available in Gemini CLI? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/command-line-arguments What command-line arguments does Gemini CLI support? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:26Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/custom-command-arguments/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/custom-command-arguments POST: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/custom-command-arguments with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/custom-command-arguments?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I pass arguments to a Gemini CLI custom command? Revision 1, last verified 2026-11-20T12:50:48Z. https://latestn.com/tool/gemini-cli/commands-and-shortcuts/custom-command-arguments (accessed 2026-11-21T09:58:14Z). @misc{LatestN_tool_gemini_cli_commands_and_shortcuts_custom_command_arguments_r1, title = {How do I pass arguments to a Gemini CLI custom command?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/commands-and-shortcuts/custom-command-arguments}}, note = {Revision 1; digest sha256:33bf1601e8efb71d; last verified 2026-11-20T12:50:48Z; accessed 2026-11-21T09:58:14Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/custom-command-arguments