Gemini CLIsession-managementbuilt-in

/restore

Revert files to their pre-tool state using checkpointing. Pass a tool_call_id to restore a specific checkpoint.

Syntax

/restore [tool_call_id]

When to use

  • Undoing a bad file edit from Gemini
  • Rolling back to a specific point in the session

More Gemini CLI commands