Answer: You create a namespaced custom command by placing the command file in a subdirectory of the commands directory; the path separator is converted to a colon, so a file at `/.gemini/commands/git/commit.toml` becomes the namespaced command `/git:commit`. Status: Confirmed Entry: tool/gemini-cli/commands-and-shortcuts/namespaced-custom-commands Revision: 1 Digest: sha256:b6ab28e30e87c069 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:24Z Last changed: 2026-11-13T03:17:24Z Last verified: 2026-11-20T12:50:47Z Next check: 2026-11-21T12:50:47Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of namespaced command example | /git:commit | [1] | 2026-11-20 path separator conversion | : | [1] | 2026-11-20 simple command example | /test | [1] | 2026-11-20 reload command | /commands reload | [1] | 2026-11-20 Sources: [1] Google. "Custom commands". https://geminicli.com/docs/cli/custom-commands.md Role: primary. Accessed: 2026-11-20T12:50:47Z Quote: "A file at `/.gemini/commands/git/commit.toml` becomes the namespaced command `/git:commit`." (Supports: namespaced command example) Quote: "separator (`/` or `\`) being converted to a colon (`:`)." (Supports: path separator conversion) Quote: "A file at `~/.gemini/commands/test.toml` becomes the command `/test`." (Supports: simple command example) Quote: "run > `/commands reload` to pick up your changes without restarting the CLI." (Supports: reload command) 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:24Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:50:47Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:50:47Z Last attempt: 2026-11-20T12:50:47Z Notes and limitations: Extracted automatically from a single official source (section "Naming and namespacing"). Related: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/reload-skills How do I reload Agent Skills in Gemini CLI without restarting? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/required-toml-fields What fields are required in a Gemini CLI custom command TOML file? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/restore-checkpoint How do I restore a checkpoint in Gemini CLI? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/manage-skills-terminal How do I manage Gemini CLI Agent Skills from the terminal? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/mcp-status-command How do I check the status of my MCP servers in Gemini CLI using the /mcp command? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/monitor-progress-ctrl-t How do I monitor Gemini CLI's todo list progress with Ctrl+T? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:24Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/namespaced-custom-commands/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/namespaced-custom-commands POST: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/namespaced-custom-commands with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/namespaced-custom-commands?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a namespaced custom command in Gemini CLI? Revision 1, last verified 2026-11-20T12:50:47Z. https://latestn.com/tool/gemini-cli/commands-and-shortcuts/namespaced-custom-commands (accessed 2026-11-21T10:08:14Z). @misc{LatestN_tool_gemini_cli_commands_and_shortcuts_namespaced_custom_commands_r1, title = {How do I create a namespaced custom command in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/commands-and-shortcuts/namespaced-custom-commands}}, note = {Revision 1; digest sha256:b6ab28e30e87c069; last verified 2026-11-20T12:50:47Z; accessed 2026-11-21T10:08: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/namespaced-custom-commands