Command reference Β· Antigravity CLI
!<shell-command>
Runs a terminal command directly from the prompt box.
A ! at the start of the input in the prompt box is not a slash command, but a prefix. According to the official docs, you use ! at the start of your prompt to execute terminal commands directly. The text that follows is executed one-to-one as a shell command instead of going to the agent as an instruction β the agent doesn't interpret or plan anything here, the command is passed straight through.
This makes the prefix comparable to other shortcuts in the prompt box, such as @ for file path completion. Separately, there's a keyboard shortcut (e) that lets you edit terminal commands suggested by the agent itself before execution β but that applies to commands the agent proposes for approval, not to the manually typed !-prefix, which executes immediately without confirmation.
π THE SAME TASK (βRUN SHELL COMMAND DIRECTLYβ) ON OTHER PLATFORMS
β WHEN TO USE IT?
Quickly run a known terminal command without leaving the TUI
!git status or !ls, to take a quick look without involving the agent
Test a command whose raw output you want to read yourself directly
!npm run build, to see the unfiltered terminal result
β WHEN NOT TO?
The agent should choose the right command itself or interpret the result
! executes the command directly and unchanged, without the agent selecting it, adapting it, or evaluating the result.
Better: Phrase the request as a normal prompt, so the agent suggests the appropriate command itself and interprets the result
SOURCES
- Antigravity CLI docs: Using the CLI β antigravity.google