gemini -p 'Refactor this' < main.py > refactored.py
Category: Gemini CLI
gemini -p 'Refactor this' < main.py > refactored.py
Pipe source code in, redirect refactored output to a file
Pipes Python source code into Gemini and redirects the refactored output to a new file.