# fa CLI

Use Font Awesome with AI coding tools, in CI workflows, or from your terminal

> Use the CLI (Command Line Interface) to query Font Awesome icons and releases, search and download your kits, and more.

  <h4>
    Early Days
  </h4>

We're just getting started with the `fa` CLI and would love to hear what you think. Got feedback, ideas, or running into issues? Drop us a line at [hello@fontawesome.com](mailto:hello@fontawesome.com).

Pro Tip: Use the `fa` CLI to level up [Font Awesome agent tools](../ai-agent-tools) in your AI coding assistants, giving them the power to read and search your kits and account metadata to find the perfect icons for your projects.

## Install

<div class="cli-install" data-os="mac-linux">

```shell
curl --proto '=https' --tlsv1.2 -fsSL https://fontawesome.com/fa-cli/install.sh | bash
```

</div>

<div class="cli-install" data-os="windows" hidden>

```powershell
irm https://fontawesome.com/fa-cli/install.ps1 | iex
```

</div>

## Usage

Here are some of the things you can do with the `fa` CLI:

| <div style="width:200px;">Command</div> | Description                                                                                                                                                |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fa login`                              | Log in to your fontawesome.com account to access your kits and account                                                                                     |
| `fa search`                             | Search for icons across different versions of Font Awesome, or within your kits, including custom icons. Searches on kits are limited to the kit's subset. |
| `fa kits`                               | List your kits and their metadata                                                                                                                          |
| `fa kit show`                           | Show details of a specific kit, including custom icons (aka "icon uploads")                                                                                |
| `fa kit icons`                          | List official icons in a specific kit, according to its subset.                                                                                            |
| `fa kit icon`                           | Get a specific official icon in a specific kit.                                                                                                            |
| `fa kit family-styles`                  | List the family-styles in a specific kit, according to its subset.                                                                                         |
| `fa kit family-style`                   | Select a particular family-style from a specific kit.                                                                                                      |
| `fa kit download`                       | Download a kit                                                                                                                                             |
| `fa icons`                              | List all icons in some version of Font Awesome                                                                                                             |
| `fa icon-packs`                         | Show all metadata about Icon Collections, Icon Packs, and Visual Tags for some version of Font Awesome                                                     |
| `fa releases`                           | List all releases of Font Awesome                                                                                                                          |
| `fa query`                              | Run a raw GraphQL query against the Font Awesome API and print the JSON response. Runs the query with your credentials if you're logged in.                |

## Examples

Search icons for "coffee" in the kit with token `8812e4e21d`, returning only icons within the kit's subset, including custom icons, and include their SVG data in html format:

```shell
fa search --kit-token 8812e4e21d --svg-format html --query 'coffee'
```

Download the Web-type archive of the kit with token `8812e4e21d` and unzip its contents under the `kit` directory:

```shell
fa kit download --kit-token 8812e4e21d --unzip --output kit web
```

Kit downloads and SVG icon data are only available for accounts with access to downloads, such as Pro and Pro Plus.

<script>
  (function () {
    var ua = navigator.userAgent
    var platform = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || ''
    var isWindows = /Win/i.test(platform) || /Windows/i.test(ua)
    if (!isWindows) return
    document.querySelectorAll('.cli-install').forEach(function (el) {
      el.hidden = el.dataset.os !== 'windows'
    })
  })()
</script>
