Skip to content

Rawi (راوي) Documentation | Getting Started Install

The Rawi Command Line Interface (Rawi CLI) is an open source tool that enables you to interact with AI providers and manage your Rawi configuration directly from your terminal. With minimal setup, you can start running commands to ask questions, manage profiles, and view history—all from your command-line shell.

  • Linux shells – Use bash, zsh, or other common shells.
  • macOS – Use Terminal or iTerm.
  • Windows – Use Command Prompt or PowerShell.
  • Node.js 18+ is required. We recommend using nvm to manage Node.js versions.
  • A supported package manager: npm or pnpm.
Terminal window
pnpm add -g rawi

To update Rawi CLI to the latest version, use the same command you used for installation. The package manager will handle the update automatically.

Terminal window
pnpm update -g rawi

Check your installed version:

Terminal window
rawi --version
rawi/0.0.0-beta.12 linux-x64 node-18.20.2

If the rawi command is not found, ensure your package manager’s global bin directory is in your PATH. Use the appropriate instructions for your OS and package manager:

Terminal window
# Find the global pnpm bin directory
pnpm bin -g
# Add it to your PATH (if not already present)
export PATH="$PATH:$(pnpm bin -g)"
# Optionally, add the above line to your ~/.bashrc, ~/.zshrc, or shell profile
Terminal window
pnpm remove -g rawi

If you encounter issues, see the Troubleshooting Guide for solutions to common installation and configuration problems.


Next steps:
After installing Rawi CLI, run the following to configure your first provider:

Terminal window
rawi configure