Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

autocomplete

> 开发工具
Open source

IDE-style autocomplete for your existing terminal & shell

25.2K stars0 likes0 views
WebsiteGitHub

About

IDE-style autocomplete for your existing terminal & shell

Amazon Q Developer CLI adds IDE-style completions for hundreds of popular CLIs like git, npm, docker, and aws. Start typing, and Amazon Q populates contextually relevant subcommands, options and arguments.

Amazon Q Developer CLI, formerly known as Fig, is open source. See aws/amazon-q-developer-cli to learn more.

⚡️ Installation

  • macOS:
    • DMG: Download from AWS: aws.amazon.com
    • Homebrew: brew install amazon-q
  • Linux/Windows:
    • Follow the discussions for Linux or Windows
  • Remote machines
    • Autocomplete in SSH

NOTE: Once it's downloaded, launch the app to set up Amazon Q for command line!



👋 What are "completion specs"?

A completion spec is a declarative schema that specifies the subcommands, options and args for a CLI tool. Amazon Q uses these schemas to generate suggestions.


😎 Contribute your first spec in < 3 minutes

Use the steps below or follow our getting started guide: fig.io/docs

Prerequisites:

  • Download Amazon Q for command line
  • Node and Pnpm

Steps

  1. Make sure you have pnpm installed, as that's the package manager used in this repo.

  2. Click here to fork this repo.

  3. Clone your forked repo and create an example spec

    bash
    # Replace `YOUR_GITHUB_USERNAME` with your own GitHub username
    git clone https://github.com/YOUR_GITHUB_USERNAME/autocomplete.git autocomplete
    cd autocomplete
    
    # Add withfig/autocomplete as a remote
    git remote add upstream https://github.com/withfig/autocomplete.git
    
    # Install packages
    pnpm install
    
    # Create an example spec (call it "abc")
    pnpm create-spec abc
    
    # Turn on "dev mode"
    pnpm dev
  4. Now go to your terminal and type abc[space]. Your example spec will appear. 😊

Other things to know

  • Edit your spec in TypeScript in the src/ folder
  • On save, specs are compiled to the build/ folder
  • In dev mode, specs are read from the build folder, and generators run every keystroke.

📦 Other available package.json commands

bash
# Typecheck all specs in the src/ folder
pnpm test

# Compile typescripts specs from src/ folder to build/ folder
pnpm build

# Lint and fix issues
pnpm lint:fix

🔥 Contributions

We would love contributions for:

  • New completion specs
  • Errors with existing completion specs (e.g. missing subcommands, options, or arguments)
  • Generators for argument suggestions
  • Better descriptions, icons etc
  • Themes!

If you aren't able to contribute, please feel free to open an issue.

🙋‍♀️ FAQ

What terminals does Amazon Q work with?

Amazon Q for command line works with the native macOS Terminal app, iTerm, Tabby, Hyper, Kitty, WezTerm, and Alacritty. It also works in the integrated terminals of VSCode, JetBrains IDEs, Android Studio, and Nova.

Want to see another terminal included? Check our issue tracker and add your support for it!

How does Amazon Q for command line work?

Amazon Q for command line uses the Accessibility API on Mac to position the window, and integrates with your shell to read what you've typed.

Does Amazon Q for command line work on Windows or Linux?

Not yet, Amazon Q for command line is only available on macOS for now. Windows and Linux support is in progress!

How can I download Amazon Q?

Run brew install amazon-q or, downloading the app at aws.amazon.com. Then, launch the Amazon Q app!

How do I submit a PR?

Check out our How to Contribute guide. Many of Amazon Q's 400+ contributors made their first open source contribution to Amazon Q!

Amazon Q for command line doesn't work for me!

Run q doctor to automatically debug issues with your installation. Otherwise make an issue in our GitHub discussions community: aws/q-command-line-discussions


✨ Contributors

Issues· 195 open

View all issuesOpen on GitHub
  • #2607

    [git] gitGenerators.commits doesn't handle large repos well

    NEED_TO_LABELUpdated Jul 16, 2026
  • #2102

    Terminal session freezes when I type `rclone about ` with fig on

    bugUpdated Apr 9, 2026
  • #2612

    feat: add deno.json support

    Updated Oct 1, 2025
  • #2068

    Fig is joining AWS!

    AnnouncementUpdated Aug 19, 2025
  • #2606

    [git] gitGenerators.commits doesn't handle extracting commit hash properly

    NEED_TO_LABELUpdated Aug 9, 2025
  • #2599

    Autocomplete confuses taskwarrior commands with go-task commands

    Updated Aug 5, 2025
  • #1939

    micromamba autocomplete does not work

    good first issueCLI requestUpdated Apr 7, 2025
  • #2572

    provide completions for git remotes with remote as prefix

    NEED_TO_LABELUpdated Feb 24, 2025
  • #2559

    Update .github/ISSUE_TEMPLATE/config.yml to remove or replace broken link

    Updated Feb 9, 2025
  • #2534

    [CLI_NAME]KomoTu

    NEED_TO_LABELUpdated Dec 22, 2024

> Tags

TypeScriptautocompletebashclifig

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具