Linux command
q 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start an interactive chat session
q chat
Ask a question directly
q chat "[How do I list EC2 instances?]"
Translate natural language to shell commands
q translate "[find all Python files modified in the last week]"
Run in non-interactive mode with auto-approval
q chat --no-interactive --trust-all-tools "[create a hello world script]"
Resume a previous chat session
q chat --resume
Use a specific agent
q chat --agent [my-agent] "[help with AWS CLI]"
Diagnose and fix common issues
q doctor
Enable or disable autocomplete integrations
q integrations install
Check the current version
q version
说明
Amazon Q Developer CLI is an AI-powered terminal assistant from AWS that provides agentic chat, command autocompletion, and natural language code generation. The enhanced CLI agent, powered by Anthropic's Claude, can read and write files locally, query AWS resources, run bash commands, and help debug issues. The tool offers two assistance features: an autocomplete dropdown menu showing available command options, and inline suggestions appearing as gray ghost text as you type. It supports natural language translation to shell commands via q translate and interactive coding sessions via q chat. Available for macOS and Linux, it integrates with terminals including macOS Terminal, iTerm2, and VS Code's built-in terminal.
FAQ
What is the q command used for?
Amazon Q Developer CLI is an AI-powered terminal assistant from AWS that provides agentic chat, command autocompletion, and natural language code generation. The enhanced CLI agent, powered by Anthropic's Claude, can read and write files locally, query AWS resources, run bash commands, and help debug issues. The tool offers two assistance features: an autocomplete dropdown menu showing available command options, and inline suggestions appearing as gray ghost text as you type. It supports natural language translation to shell commands via q translate and interactive coding sessions via q chat. Available for macOS and Linux, it integrates with terminals including macOS Terminal, iTerm2, and VS Code's built-in terminal.
How do I run a basic q example?
Run `q chat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more q examples?
This page includes 9 examples for q, plus related commands for nearby Linux tasks.