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.
Currently, you need to be online to use this feature. If this feature doesn't work, your ISP or firewall may be blocking the calls to app.warp.dev
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."
Results are generated in real time using the LLM of your choice. By default, Generate uses Claude 3.5 Sonnet, but it also supports OpenAI GPT-4o and Claude 3.5 Haiku.
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"
If you experience any issues with Generate, please visit known issues for troubleshooting steps.
When you use Generate, the query you enter is sent to OpenAI or Anthropic, but it is not stored on our servers. Instead, we rely on these AI providers to generate code or contextual suggestions based on your instructions. You can learn more about how these companies handle your data by visiting their privacy policies: OpenAI's privacy policy and Anthropic's privacy policy. Additionally, neither Warp, OpenAI, nor Anthropic use your data to train their AI models.