Generate
Use natural language to look up commands or input, accessible either directly from the command line input or inside any interactive command or program.
Last updated
Was this helpful?
Use natural language to look up commands or input, accessible either directly from the command line input or inside any interactive command or program.
Last updated
Was this helpful?
Generate helps turn natural language queries into precise commands as terminal input or contextual suggestions inside interactive commands and programs, whether you're using psql, gdb, git, mysql, or any other CLI tool.
Generate is backed by Large Language Models from API providers like OpenAI and Anthropic, and are completely opt-in.
Type #
on the command line input to generate command suggestions.
Press CTRL-`
or type #
into the text input editor to search using natural language.
Type in the input box what you'd like to do. For example, "replace a string in a file."
Results are generated in real-time, and you can keep the current prompt or modify the prompt to generate new commands.
When you've found the command you want to execute, it can be run or saved as a Workflow onto Warp Drive to easily recall it in the future.
In interactive CLI applications, you can generate input using natural language.
Inside a long-running, interactive command, press CMD-I
when you see the hint text appear.
Type what you would like to generate in the input box. For example, "show me all tables in my Postgres database" or in Vim, "generate a recursive Fibonacci function and save it to the file."
To refine or follow up on your query, press CMD-Y
. You can then either edit your last message by pressing UP ↑
or add a follow-up by typing in new text.
When you've found the text you want to add or execute, press Enter
or click the Accept button.
A couple of other examples of interactive CLIs where you can invoke Generate:
Database REPL (e.g. psql
, mysql
, sqlite
): Generate SQL queries such as "create a table to store user data" or "show me all the rows in orders for the last month"
Text editors (e.g. vim
, nano
): Quickly generate text such as a markdown header, a code block comment, or a boilerplate CSS class.
Python REPL (e.g. ipython
, python
): Quickly generate Python snippets such as "create a simple plot of x" or "write a unit test for this function"
Debugger tools (e.g. gdb
, lldb
): Get commands for setting breakpoints or inspecting memory
Version control (e.g. git rebase -i
): Speed up complex git commands by describing your goal such as "interactively rebase master onto feature-branch"
Cloud provider shells (e.g. gcloud
, aws cli
): faster setup or resource management such as "create a new Kubernetes cluster" or "provision a new RDS instance"
The following LLMs are currently supported in Warp:
OpenAI:
GPT-4o
o3-mini
Claude:
3.7 Sonnet
3.5 Sonnet
3.5 Haiku
Google:
Gemini 2.0 Flash
R1
V3
Results are generated in real time using the .
Results are generated in real time using the
Results are generated in real time using the
If you experience any issues with Generate, please visit known issues for .
DeepSeek (hosted by in the US):
See our for more information on how we handle data with Generate.