gemini -p 'Summarize this file' < README.md

Category: Gemini CLI

gemini -p 'Summarize this file' < README.md

Pipe file content as stdin for a non-interactive prompt

Pipes a file's contents as stdin and passes a prompt — lets you ask Gemini about a file without typing its path.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.