@google/gemini-cli-core 0.21.0-nightly.20251219.70696e364 → 0.21.0-nightly.20251221.8feeffb29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/docs/CONTRIBUTING.md +546 -0
  2. package/dist/docs/architecture.md +80 -0
  3. package/dist/docs/assets/connected_devtools.png +0 -0
  4. package/dist/docs/assets/gemini-screenshot.png +0 -0
  5. package/dist/docs/assets/release_patch.png +0 -0
  6. package/dist/docs/assets/theme-ansi-light.png +0 -0
  7. package/dist/docs/assets/theme-ansi.png +0 -0
  8. package/dist/docs/assets/theme-atom-one.png +0 -0
  9. package/dist/docs/assets/theme-ayu-light.png +0 -0
  10. package/dist/docs/assets/theme-ayu.png +0 -0
  11. package/dist/docs/assets/theme-custom.png +0 -0
  12. package/dist/docs/assets/theme-default-light.png +0 -0
  13. package/dist/docs/assets/theme-default.png +0 -0
  14. package/dist/docs/assets/theme-dracula.png +0 -0
  15. package/dist/docs/assets/theme-github-light.png +0 -0
  16. package/dist/docs/assets/theme-github.png +0 -0
  17. package/dist/docs/assets/theme-google-light.png +0 -0
  18. package/dist/docs/assets/theme-xcode-light.png +0 -0
  19. package/dist/docs/changelogs/index.md +592 -0
  20. package/dist/docs/changelogs/latest.md +225 -0
  21. package/dist/docs/changelogs/preview.md +129 -0
  22. package/dist/docs/changelogs/releases.md +896 -0
  23. package/dist/docs/cli/authentication.md +3 -0
  24. package/dist/docs/cli/checkpointing.md +94 -0
  25. package/dist/docs/cli/commands.md +354 -0
  26. package/dist/docs/cli/configuration.md +780 -0
  27. package/dist/docs/cli/custom-commands.md +315 -0
  28. package/dist/docs/cli/enterprise.md +565 -0
  29. package/dist/docs/cli/gemini-ignore.md +71 -0
  30. package/dist/docs/cli/gemini-md.md +108 -0
  31. package/dist/docs/cli/generation-settings.md +210 -0
  32. package/dist/docs/cli/headless.md +388 -0
  33. package/dist/docs/cli/index.md +63 -0
  34. package/dist/docs/cli/keyboard-shortcuts.md +143 -0
  35. package/dist/docs/cli/model-routing.md +37 -0
  36. package/dist/docs/cli/model.md +62 -0
  37. package/dist/docs/cli/sandbox.md +171 -0
  38. package/dist/docs/cli/session-management.md +158 -0
  39. package/dist/docs/cli/settings.md +112 -0
  40. package/dist/docs/cli/system-prompt.md +93 -0
  41. package/dist/docs/cli/telemetry.md +791 -0
  42. package/dist/docs/cli/themes.md +237 -0
  43. package/dist/docs/cli/token-caching.md +20 -0
  44. package/dist/docs/cli/trusted-folders.md +95 -0
  45. package/dist/docs/cli/tutorials.md +83 -0
  46. package/dist/docs/cli/uninstall.md +47 -0
  47. package/dist/docs/core/index.md +101 -0
  48. package/dist/docs/core/memport.md +244 -0
  49. package/dist/docs/core/policy-engine.md +267 -0
  50. package/dist/docs/core/tools-api.md +131 -0
  51. package/dist/docs/examples/proxy-script.md +83 -0
  52. package/dist/docs/extensions/extension-releasing.md +183 -0
  53. package/dist/docs/extensions/getting-started-extensions.md +245 -0
  54. package/dist/docs/extensions/index.md +293 -0
  55. package/dist/docs/faq.md +154 -0
  56. package/dist/docs/get-started/authentication.md +321 -0
  57. package/dist/docs/get-started/configuration-v1.md +888 -0
  58. package/dist/docs/get-started/configuration.md +1444 -0
  59. package/dist/docs/get-started/deployment.md +143 -0
  60. package/dist/docs/get-started/examples.md +219 -0
  61. package/dist/docs/get-started/gemini-3.md +116 -0
  62. package/dist/docs/get-started/index.md +71 -0
  63. package/dist/docs/get-started/installation.md +141 -0
  64. package/dist/docs/hooks/best-practices.md +806 -0
  65. package/dist/docs/hooks/index.md +665 -0
  66. package/dist/docs/hooks/reference.md +168 -0
  67. package/dist/docs/hooks/writing-hooks.md +1026 -0
  68. package/dist/docs/ide-integration/ide-companion-spec.md +267 -0
  69. package/dist/docs/ide-integration/index.md +202 -0
  70. package/dist/docs/index.md +147 -0
  71. package/dist/docs/integration-tests.md +211 -0
  72. package/dist/docs/issue-and-pr-automation.md +134 -0
  73. package/dist/docs/local-development.md +128 -0
  74. package/dist/docs/mermaid/context.mmd +103 -0
  75. package/dist/docs/mermaid/render-path.mmd +64 -0
  76. package/dist/docs/npm.md +62 -0
  77. package/dist/docs/quota-and-pricing.md +158 -0
  78. package/dist/docs/release-confidence.md +164 -0
  79. package/dist/docs/releases.md +540 -0
  80. package/dist/docs/sidebar.json +297 -0
  81. package/dist/docs/tools/file-system.md +217 -0
  82. package/dist/docs/tools/index.md +95 -0
  83. package/dist/docs/tools/mcp-server.md +1044 -0
  84. package/dist/docs/tools/memory.md +54 -0
  85. package/dist/docs/tools/shell.md +260 -0
  86. package/dist/docs/tools/todos.md +57 -0
  87. package/dist/docs/tools/web-fetch.md +59 -0
  88. package/dist/docs/tools/web-search.md +42 -0
  89. package/dist/docs/tos-privacy.md +96 -0
  90. package/dist/docs/troubleshooting.md +158 -0
  91. package/dist/google-gemini-cli-core-0.21.0-nightly.20251219.70696e364.tgz +0 -0
  92. package/dist/src/agents/delegate-to-agent-tool.test.js +1 -0
  93. package/dist/src/agents/delegate-to-agent-tool.test.js.map +1 -1
  94. package/dist/src/agents/introspection-agent.d.ts +23 -0
  95. package/dist/src/agents/introspection-agent.js +72 -0
  96. package/dist/src/agents/introspection-agent.js.map +1 -0
  97. package/dist/src/agents/introspection-agent.test.d.ts +6 -0
  98. package/dist/src/agents/introspection-agent.test.js +47 -0
  99. package/dist/src/agents/introspection-agent.test.js.map +1 -0
  100. package/dist/src/agents/local-executor.js +14 -12
  101. package/dist/src/agents/local-executor.js.map +1 -1
  102. package/dist/src/agents/local-executor.test.js +3 -0
  103. package/dist/src/agents/local-executor.test.js.map +1 -1
  104. package/dist/src/agents/registry.js +6 -0
  105. package/dist/src/agents/registry.js.map +1 -1
  106. package/dist/src/agents/registry.test.js +16 -0
  107. package/dist/src/agents/registry.test.js.map +1 -1
  108. package/dist/src/config/config.d.ts +6 -0
  109. package/dist/src/config/config.js +22 -0
  110. package/dist/src/config/config.js.map +1 -1
  111. package/dist/src/config/config.test.js +59 -1
  112. package/dist/src/config/config.test.js.map +1 -1
  113. package/dist/src/core/client.js +8 -4
  114. package/dist/src/core/client.js.map +1 -1
  115. package/dist/src/core/client.test.js +20 -0
  116. package/dist/src/core/client.test.js.map +1 -1
  117. package/dist/src/core/clientHookTriggers.js +2 -2
  118. package/dist/src/core/clientHookTriggers.js.map +1 -1
  119. package/dist/src/core/coreToolHookTriggers.js +3 -3
  120. package/dist/src/core/coreToolHookTriggers.js.map +1 -1
  121. package/dist/src/core/geminiChatHookTriggers.js +3 -3
  122. package/dist/src/core/geminiChatHookTriggers.js.map +1 -1
  123. package/dist/src/core/sessionHookTriggers.js +3 -3
  124. package/dist/src/core/sessionHookTriggers.js.map +1 -1
  125. package/dist/src/generated/git-commit.d.ts +2 -2
  126. package/dist/src/generated/git-commit.js +2 -2
  127. package/dist/src/hooks/hookEventHandler.js +10 -4
  128. package/dist/src/hooks/hookEventHandler.js.map +1 -1
  129. package/dist/src/hooks/hookEventHandler.test.js +40 -0
  130. package/dist/src/hooks/hookEventHandler.test.js.map +1 -1
  131. package/dist/src/hooks/hookRunner.js +12 -8
  132. package/dist/src/hooks/hookRunner.js.map +1 -1
  133. package/dist/src/hooks/hookRunner.test.js +58 -33
  134. package/dist/src/hooks/hookRunner.test.js.map +1 -1
  135. package/dist/src/mcp/oauth-provider.js +6 -2
  136. package/dist/src/mcp/oauth-provider.js.map +1 -1
  137. package/dist/src/mcp/oauth-provider.test.js +4 -1
  138. package/dist/src/mcp/oauth-provider.test.js.map +1 -1
  139. package/dist/src/mcp/oauth-utils.d.ts +8 -1
  140. package/dist/src/mcp/oauth-utils.js +30 -1
  141. package/dist/src/mcp/oauth-utils.js.map +1 -1
  142. package/dist/src/mcp/oauth-utils.test.js +42 -0
  143. package/dist/src/mcp/oauth-utils.test.js.map +1 -1
  144. package/dist/src/services/contextManager.d.ts +5 -11
  145. package/dist/src/services/contextManager.js +20 -17
  146. package/dist/src/services/contextManager.js.map +1 -1
  147. package/dist/src/services/contextManager.test.js +40 -41
  148. package/dist/src/services/contextManager.test.js.map +1 -1
  149. package/dist/src/tools/confirmation-policy.test.d.ts +6 -0
  150. package/dist/src/tools/confirmation-policy.test.js +152 -0
  151. package/dist/src/tools/confirmation-policy.test.js.map +1 -0
  152. package/dist/src/tools/edit.js +5 -1
  153. package/dist/src/tools/edit.js.map +1 -1
  154. package/dist/src/tools/get-internal-docs.d.ts +27 -0
  155. package/dist/src/tools/get-internal-docs.js +129 -0
  156. package/dist/src/tools/get-internal-docs.js.map +1 -0
  157. package/dist/src/tools/get-internal-docs.test.d.ts +6 -0
  158. package/dist/src/tools/get-internal-docs.test.js +56 -0
  159. package/dist/src/tools/get-internal-docs.test.js.map +1 -0
  160. package/dist/src/tools/smart-edit.js +5 -1
  161. package/dist/src/tools/smart-edit.js.map +1 -1
  162. package/dist/src/tools/tool-names.d.ts +1 -0
  163. package/dist/src/tools/tool-names.js +1 -0
  164. package/dist/src/tools/tool-names.js.map +1 -1
  165. package/dist/src/tools/web-fetch.js +5 -1
  166. package/dist/src/tools/web-fetch.js.map +1 -1
  167. package/dist/src/tools/write-file.js +5 -1
  168. package/dist/src/tools/write-file.js.map +1 -1
  169. package/dist/src/utils/environmentContext.js +3 -0
  170. package/dist/src/utils/environmentContext.js.map +1 -1
  171. package/dist/src/utils/environmentContext.test.js +2 -0
  172. package/dist/src/utils/environmentContext.test.js.map +1 -1
  173. package/dist/src/utils/events.d.ts +3 -2
  174. package/dist/src/utils/events.js.map +1 -1
  175. package/dist/src/utils/memoryDiscovery.js +1 -1
  176. package/dist/src/utils/memoryDiscovery.js.map +1 -1
  177. package/dist/src/utils/memoryDiscovery.test.js +3 -1
  178. package/dist/src/utils/memoryDiscovery.test.js.map +1 -1
  179. package/dist/src/utils/shell-utils.js +25 -4
  180. package/dist/src/utils/shell-utils.js.map +1 -1
  181. package/dist/tsconfig.tsbuildinfo +1 -1
  182. package/package.json +1 -1
  183. package/dist/google-gemini-cli-core-0.21.0-nightly.20251218.739c02bd6.tgz +0 -0
@@ -0,0 +1,315 @@
1
+ # Custom commands
2
+
3
+ Custom commands let you save and reuse your favorite or most frequently used
4
+ prompts as personal shortcuts within Gemini CLI. You can create commands that
5
+ are specific to a single project or commands that are available globally across
6
+ all your projects, streamlining your workflow and ensuring consistency.
7
+
8
+ ## File locations and precedence
9
+
10
+ Gemini CLI discovers commands from two locations, loaded in a specific order:
11
+
12
+ 1. **User commands (global):** Located in `~/.gemini/commands/`. These commands
13
+ are available in any project you are working on.
14
+ 2. **Project commands (local):** Located in
15
+ `<your-project-root>/.gemini/commands/`. These commands are specific to the
16
+ current project and can be checked into version control to be shared with
17
+ your team.
18
+
19
+ If a command in the project directory has the same name as a command in the user
20
+ directory, the **project command will always be used.** This allows projects to
21
+ override global commands with project-specific versions.
22
+
23
+ ## Naming and namespacing
24
+
25
+ The name of a command is determined by its file path relative to its `commands`
26
+ directory. Subdirectories are used to create namespaced commands, with the path
27
+ separator (`/` or `\`) being converted to a colon (`:`).
28
+
29
+ - A file at `~/.gemini/commands/test.toml` becomes the command `/test`.
30
+ - A file at `<project>/.gemini/commands/git/commit.toml` becomes the namespaced
31
+ command `/git:commit`.
32
+
33
+ ## TOML file format (v1)
34
+
35
+ Your command definition files must be written in the TOML format and use the
36
+ `.toml` file extension.
37
+
38
+ ### Required fields
39
+
40
+ - `prompt` (String): The prompt that will be sent to the Gemini model when the
41
+ command is executed. This can be a single-line or multi-line string.
42
+
43
+ ### Optional fields
44
+
45
+ - `description` (String): A brief, one-line description of what the command
46
+ does. This text will be displayed next to your command in the `/help` menu.
47
+ **If you omit this field, a generic description will be generated from the
48
+ filename.**
49
+
50
+ ## Handling arguments
51
+
52
+ Custom commands support two powerful methods for handling arguments. The CLI
53
+ automatically chooses the correct method based on the content of your command\'s
54
+ `prompt`.
55
+
56
+ ### 1. Context-aware injection with `{{args}}`
57
+
58
+ If your `prompt` contains the special placeholder `{{args}}`, the CLI will
59
+ replace that placeholder with the text the user typed after the command name.
60
+
61
+ The behavior of this injection depends on where it is used:
62
+
63
+ **A. Raw injection (outside shell commands)**
64
+
65
+ When used in the main body of the prompt, the arguments are injected exactly as
66
+ the user typed them.
67
+
68
+ **Example (`git/fix.toml`):**
69
+
70
+ ```toml
71
+ # Invoked via: /git:fix "Button is misaligned"
72
+
73
+ description = "Generates a fix for a given issue."
74
+ prompt = "Please provide a code fix for the issue described here: {{args}}."
75
+ ```
76
+
77
+ The model receives:
78
+ `Please provide a code fix for the issue described here: "Button is misaligned".`
79
+
80
+ **B. Using arguments in shell commands (inside `!{...}` blocks)**
81
+
82
+ When you use `{{args}}` inside a shell injection block (`!{...}`), the arguments
83
+ are automatically **shell-escaped** before replacement. This allows you to
84
+ safely pass arguments to shell commands, ensuring the resulting command is
85
+ syntactically correct and secure while preventing command injection
86
+ vulnerabilities.
87
+
88
+ **Example (`/grep-code.toml`):**
89
+
90
+ ```toml
91
+ prompt = """
92
+ Please summarize the findings for the pattern `{{args}}`.
93
+
94
+ Search Results:
95
+ !{grep -r {{args}} .}
96
+ """
97
+ ```
98
+
99
+ When you run `/grep-code It\'s complicated`:
100
+
101
+ 1. The CLI sees `{{args}}` used both outside and inside `!{...}`.
102
+ 2. Outside: The first `{{args}}` is replaced raw with `It\'s complicated`.
103
+ 3. Inside: The second `{{args}}` is replaced with the escaped version (e.g., on
104
+ Linux: `"It\'s complicated"`).
105
+ 4. The command executed is `grep -r "It\'s complicated" .`.
106
+ 5. The CLI prompts you to confirm this exact, secure command before execution.
107
+ 6. The final prompt is sent.
108
+
109
+ ### 2. Default argument handling
110
+
111
+ If your `prompt` does **not** contain the special placeholder `{{args}}`, the
112
+ CLI uses a default behavior for handling arguments.
113
+
114
+ If you provide arguments to the command (e.g., `/mycommand arg1`), the CLI will
115
+ append the full command you typed to the end of the prompt, separated by two
116
+ newlines. This allows the model to see both the original instructions and the
117
+ specific arguments you just provided.
118
+
119
+ If you do **not** provide any arguments (e.g., `/mycommand`), the prompt is sent
120
+ to the model exactly as it is, with nothing appended.
121
+
122
+ **Example (`changelog.toml`):**
123
+
124
+ This example shows how to create a robust command by defining a role for the
125
+ model, explaining where to find the user's input, and specifying the expected
126
+ format and behavior.
127
+
128
+ ```toml
129
+ # In: <project>/.gemini/commands/changelog.toml
130
+ # Invoked via: /changelog 1.2.0 added "Support for default argument parsing."
131
+
132
+ description = "Adds a new entry to the project\'s CHANGELOG.md file."
133
+ prompt = """
134
+ # Task: Update Changelog
135
+
136
+ You are an expert maintainer of this software project. A user has invoked a command to add a new entry to the changelog.
137
+
138
+ **The user\'s raw command is appended below your instructions.**
139
+
140
+ Your task is to parse the `<version>`, `<change_type>`, and `<message>` from their input and use the `write_file` tool to correctly update the `CHANGELOG.md` file.
141
+
142
+ ## Expected Format
143
+ The command follows this format: `/changelog <version> <type> <message>`
144
+ - `<type>` must be one of: "added", "changed", "fixed", "removed".
145
+
146
+ ## Behavior
147
+ 1. Read the `CHANGELOG.md` file.
148
+ 2. Find the section for the specified `<version>`.
149
+ 3. Add the `<message>` under the correct `<type>` heading.
150
+ 4. If the version or type section doesn\'t exist, create it.
151
+ 5. Adhere strictly to the "Keep a Changelog" format.
152
+ """
153
+ ```
154
+
155
+ When you run `/changelog 1.2.0 added "New feature"`, the final text sent to the
156
+ model will be the original prompt followed by two newlines and the command you
157
+ typed.
158
+
159
+ ### 3. Executing shell commands with `!{...}`
160
+
161
+ You can make your commands dynamic by executing shell commands directly within
162
+ your `prompt` and injecting their output. This is ideal for gathering context
163
+ from your local environment, like reading file content or checking the status of
164
+ Git.
165
+
166
+ When a custom command attempts to execute a shell command, Gemini CLI will now
167
+ prompt you for confirmation before proceeding. This is a security measure to
168
+ ensure that only intended commands can be run.
169
+
170
+ **How it works:**
171
+
172
+ 1. **Inject commands:** Use the `!{...}` syntax.
173
+ 2. **Argument substitution:** If `{{args}}` is present inside the block, it is
174
+ automatically shell-escaped (see
175
+ [Context-Aware Injection](#1-context-aware-injection-with-args) above).
176
+ 3. **Robust parsing:** The parser correctly handles complex shell commands that
177
+ include nested braces, such as JSON payloads. **Note:** The content inside
178
+ `!{...}` must have balanced braces (`{` and `}`). If you need to execute a
179
+ command containing unbalanced braces, consider wrapping it in an external
180
+ script file and calling the script within the `!{...}` block.
181
+ 4. **Security check and confirmation:** The CLI performs a security check on
182
+ the final, resolved command (after arguments are escaped and substituted). A
183
+ dialog will appear showing the exact command(s) to be executed.
184
+ 5. **Execution and error reporting:** The command is executed. If the command
185
+ fails, the output injected into the prompt will include the error messages
186
+ (stderr) followed by a status line, e.g.,
187
+ `[Shell command exited with code 1]`. This helps the model understand the
188
+ context of the failure.
189
+
190
+ **Example (`git/commit.toml`):**
191
+
192
+ This command gets the staged git diff and uses it to ask the model to write a
193
+ commit message.
194
+
195
+ ````toml
196
+ # In: <project>/.gemini/commands/git/commit.toml
197
+ # Invoked via: /git:commit
198
+
199
+ description = "Generates a Git commit message based on staged changes."
200
+
201
+ # The prompt uses !{...} to execute the command and inject its output.
202
+ prompt = """
203
+ Please generate a Conventional Commit message based on the following git diff:
204
+
205
+ ```diff
206
+ !{git diff --staged}
207
+ ```
208
+
209
+ """
210
+
211
+ ````
212
+
213
+ When you run `/git:commit`, the CLI first executes `git diff --staged`, then
214
+ replaces `!{git diff --staged}` with the output of that command before sending
215
+ the final, complete prompt to the model.
216
+
217
+ ### 4. Injecting file content with `@{...}`
218
+
219
+ You can directly embed the content of a file or a directory listing into your
220
+ prompt using the `@{...}` syntax. This is useful for creating commands that
221
+ operate on specific files.
222
+
223
+ **How it works:**
224
+
225
+ - **File injection**: `@{path/to/file.txt}` is replaced by the content of
226
+ `file.txt`.
227
+ - **Multimodal support**: If the path points to a supported image (e.g., PNG,
228
+ JPEG), PDF, audio, or video file, it will be correctly encoded and injected as
229
+ multimodal input. Other binary files are handled gracefully and skipped.
230
+ - **Directory listing**: `@{path/to/dir}` is traversed and each file present
231
+ within the directory and all subdirectories is inserted into the prompt. This
232
+ respects `.gitignore` and `.geminiignore` if enabled.
233
+ - **Workspace-aware**: The command searches for the path in the current
234
+ directory and any other workspace directories. Absolute paths are allowed if
235
+ they are within the workspace.
236
+ - **Processing order**: File content injection with `@{...}` is processed
237
+ _before_ shell commands (`!{...}`) and argument substitution (`{{args}}`).
238
+ - **Parsing**: The parser requires the content inside `@{...}` (the path) to
239
+ have balanced braces (`{` and `}`).
240
+
241
+ **Example (`review.toml`):**
242
+
243
+ This command injects the content of a _fixed_ best practices file
244
+ (`docs/best-practices.md`) and uses the user\'s arguments to provide context for
245
+ the review.
246
+
247
+ ```toml
248
+ # In: <project>/.gemini/commands/review.toml
249
+ # Invoked via: /review FileCommandLoader.ts
250
+
251
+ description = "Reviews the provided context using a best practice guide."
252
+ prompt = """
253
+ You are an expert code reviewer.
254
+
255
+ Your task is to review {{args}}.
256
+
257
+ Use the following best practices when providing your review:
258
+
259
+ @{docs/best-practices.md}
260
+ """
261
+ ```
262
+
263
+ When you run `/review FileCommandLoader.ts`, the `@{docs/best-practices.md}`
264
+ placeholder is replaced by the content of that file, and `{{args}}` is replaced
265
+ by the text you provided, before the final prompt is sent to the model.
266
+
267
+ ---
268
+
269
+ ## Example: A "Pure Function" refactoring command
270
+
271
+ Let's create a global command that asks the model to refactor a piece of code.
272
+
273
+ **1. Create the file and directories:**
274
+
275
+ First, ensure the user commands directory exists, then create a `refactor`
276
+ subdirectory for organization and the final TOML file.
277
+
278
+ ```bash
279
+ mkdir -p ~/.gemini/commands/refactor
280
+ touch ~/.gemini/commands/refactor/pure.toml
281
+ ```
282
+
283
+ **2. Add the content to the file:**
284
+
285
+ Open `~/.gemini/commands/refactor/pure.toml` in your editor and add the
286
+ following content. We are including the optional `description` for best
287
+ practice.
288
+
289
+ ```toml
290
+ # In: ~/.gemini/commands/refactor/pure.toml
291
+ # This command will be invoked via: /refactor:pure
292
+
293
+ description = "Asks the model to refactor the current context into a pure function."
294
+
295
+ prompt = """
296
+ Please analyze the code I\'ve provided in the current context.
297
+ Refactor it into a pure function.
298
+
299
+ Your response should include:
300
+ 1. The refactored, pure function code block.
301
+ 2. A brief explanation of the key changes you made and why they contribute to purity.
302
+ """
303
+ ```
304
+
305
+ **3. Run the command:**
306
+
307
+ That's it! You can now run your command in the CLI. First, you might add a file
308
+ to the context, and then invoke your command:
309
+
310
+ ```
311
+ > @my-messy-function.js
312
+ > /refactor:pure
313
+ ```
314
+
315
+ Gemini CLI will then execute the multi-line prompt defined in your TOML file.