Tech »  Topic »  Gemini CLI: Custom slash commands

Gemini CLI: Custom slash commands


Today, we're announcing support for custom slash commands in Gemini CLI! This highly requested feature lets you define reusable prompts for streamlining interactions with Gemini CLI and helps improve efficiency across workflows. Slash commands can be defined in local .toml files or through Model Context Protocol (MCP) prompts. Get ready to transform how you leverage Gemini CLI with the new power of slash commands!

To use slash commands, make sure that you update to the latest version of Gemini CLI.

Update npx:

Loading...

Update npm:

Loading...

Powerful and extensible foundation with .toml files 

The foundation of custom slash commands is rooted in .toml files.

The .toml file provides a powerful and structured base on which to build extensive support for complex commands. To help support a wide range of users, we made the required keys minimal (just prompt). And we support easy-to-use args with {{args}} and shell command execution ...


Copyright of this story solely belongs to google cloudblog . To see the full text click HERE