Command line interface
Installation
If you’d like to use Air at the command line, you can use one of our standalone installers.
On macOS and Linux:
curl -LsSf https://github.com/posit-dev/air/releases/latest/download/air-installer.sh | shOn Windows:
powershell -ExecutionPolicy Bypass -c "irm https://github.com/posit-dev/air/releases/latest/download/air-installer.ps1 | iex"The installer scripts will automatically add Air to your PATH. The very first time you install Air, for the PATH modifications to be applied you’ll need to restart your terminal.
For a specific version:
curl -LsSf https://github.com/posit-dev/air/releases/download/0.1.1/air-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/posit-dev/air/releases/download/0.1.1/air-installer.ps1 | iex"If you’re on macOS and are familiar with Homebrew, you can alternatively install the air formula with:
brew install airIf you use uv, you can install Air via the air-formatter package:
# Global install
uv tool install air-formatter
air format path/to/my/script.R
# Invoke once without installing
uvx --from air-formatter air format path/to/my/script.RNote that if you’d like to use Air inside VS Code or Positron, then the Extension for those editors comes pre-bundled with an Air binary, so there’s nothing you need to do besides download the Extension.
