Back to rankings

withfig/autocomplete

TypeScriptfig.io

IDE-style autocomplete for your existing terminal & shell

autocompleteterminalshellmacoszshbashfishiterm2clitypescriptfighacktoberfest
Star Growth
Stars
25.2k
Forks
5.4k
Weekly Growth
Issues
142
10k20k
Oct 2020Sep 2022Aug 2024Jul 2026
Artifactsnpmnpm install autocomplete
README

Badge: macOS Badge: Documentation Badge: contributors

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

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


Demo of Amazon Q's CLI Completions in a terminal


👋 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

    # 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

# 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

Grid of profile icons of the 400+ contributors
Related repositories
zsh-users/zsh-autosuggestions

Fish-like autosuggestions for zsh

ShellMIT Licenseshellautosuggest
35.9k1.9k
dense-analysis/ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support

Vim ScriptBSD 2-Clause "Simplified" Licenselintervim
14k1.5k
downshift-js/downshift

🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.

JavaScriptnpmMIT Licensereactautocomplete
downshift-js.com
12.3k943
microsoft/inshellisense

IDE style command line auto complete

TypeScriptnpmMIT Licenseautocompletebash
10.2k230
httpie/http-prompt

An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie

PythonPyPIMIT Licensehttp-clientcli
http-prompt.com
9.1k343
marlonrichert/zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.

ShellMIT Licensezshcompletion
6.7k200
chriswalz/bit

Bit is a modern Git CLI

GoGo ModulesApache License 2.0gitcli
6.1k106
ynqa/jnv

Interactive JSON filter using jq

Rustcrates.ioMIT Licenseautocompletecli
6.1k74
lucaong/minisearch

Tiny and powerful JavaScript full-text search engine for browser and Node

TypeScriptnpmMIT Licensefuzzy-searchjavascript
lucaong.github.io/minisearch/
6k170
moroshko/react-autosuggest

WAI-ARIA compliant React autosuggest component

JavaScriptnpmMIT Licensereactautosuggest
react-autosuggest.js.org
5.9k569
remkop/picocli

Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.

JavaMavenApache License 2.0javacommandline
picocli.info
5.4k472
algolia/places

:globe_with_meridians: Turn any <input> into an address autocomplete

JavaScriptnpmMIT Licensealgoliaplaces
community.algolia.com/places/
5.3k223