Fig adds autocomplete to the terminal. As you type, Fig pops up subcommands, options, and contextually relevant arguments in your existing terminal on macOS.
Looking to improve autocomplete functionality or add support for your favorite CLI tool? We welcome contributions for new specs!
Completion specs are defined in a declarative JSON schema, that specifies subcommands
, options
and arguments
. Suggestions can be generated dynamically by running shell commands or reading local files, in addition to the information in the spec itself.
For more documentation and tutorials, visit withfig.com/docs
To request completions for a CLI tool, open an issue.
The autocomplete spec linter can be run to validate the format of completion specs. Run it to get syntax and type errors from your autocomplete spec.
To use the linter, run the following command from the root folder.
node linter.js specs/[specName].js
To run the linter on ALL specs in the /specs folder, run
node linter.js
Fig works with iTerm and Terminal app.
Fig uses the Accessibility API on Mac to insert text on your behalf and read the current keybuffer.
Currently, Fig is only available on MacOS.
Sign up for the waitlist at withfig.com. Fig is currently in a private beta. We are onboarding batches of new users each week.
Yes! Check out the autocomplete for teams in our docs. Reach out to [email protected] if you need help.
Get in touch at [email protected] or chat with us on Slack