←back to thread

Gemini CLI

(blog.google)
1428 points sync | 9 comments | | HN request time: 0.855s | source | bottom
1. elashri ◴[] No.44377379[source]
Hi, Thanks for this work.

currently it seems these are the CLI tools available. Is it possible to extend or actually disable some of these tools (for various reasons)?

> Available Gemini CLI tools:

    - ReadFolder
    - ReadFile
    - SearchText
    - FindFiles
    - Edit
    - WriteFile
    - WebFetch
    - ReadManyFiles
    - Shell
    - Save Memory
    - GoogleSearch
replies(4): >>44377462 #>>44377496 #>>44377796 #>>44379265 #
2. _ryanjsalva ◴[] No.44377462[source]
I also work on the product. You can extend the tools with MCP. https://github.com/google-gemini/gemini-cli/blob/main/docs/t...
replies(3): >>44378125 #>>44380322 #>>44408665 #
3. cperry ◴[] No.44377496[source]
I had to ask Gemini CLI to remind myself ;) but you can add this into settings.json:

{ "excludeTools": ["run_shell_command", "write_file"] }

but if you ask Gemini CLI to do this it'll guide you!

4. bdmorgan ◴[] No.44377796[source]
I also work on the product :-)

You can also extend with the Extensions feature - https://github.com/google-gemini/gemini-cli/blob/main/docs/e...

5. silverlake ◴[] No.44378125[source]
I tried to get Gemini CLI to update itself using the MCP settings for Claude. It went off the rails. I then fed it the link you provided and it correctly updates it's settings file. You might mention the settings.json file in the README.
6. SafeDusk ◴[] No.44379265[source]
Pretty close to what I discovered is essential in https://github.com/aperoc/toolkami, 7 tools will cover majority of the use cases.
7. ericb ◴[] No.44380322[source]
Feedback: A command to add MCP servers like claude code offers would be handy.
replies(1): >>44380862 #
8. _ryanjsalva ◴[] No.44380862{3}[source]
100% - It's on our list!
9. ericb ◴[] No.44408665[source]
>gemini -p "Say hello"

  Says hello, and just returns right away.
The gemini doc for -p says "Prompt. Appended to input on stdin (if any)." So it doesn't follow the doc.

gemini "Say hello"

  Fails as it doesn't take any arguments.
For comparison, claude lets you pass the prompt as a positional argument, but it does append it to the prompt and then gives you a running session. That's what I'd want for my use-case.