fal-client for Python or @fal-ai/client for JavaScript). The CLI is specifically for the Serverless workflow: writing, testing, and deploying your own apps. For an overview of how accounts, keys, and profiles relate to each other, see Accounts and Identity.
System Requirements
- Python: 3.8 or later
- Operating System: macOS, Linux, or Windows
Install the CLI
Using pip
Verify Installation
Check that the CLI installed correctly:Authentication
Option 1: Interactive Login (Recommended)
Option 2: API Key
Create an API key at API Keys with theADMIN scope. If creating a key for a team, make sure to select your team on the top left corner.
Set it as an environment variable:
~/.bashrc, ~/.zshrc, etc.) to persist across sessions.
If you work with multiple API keys (for example, personal and team accounts), you can use fal profile to save keys and switch between them. See the Accounts and Identity page for details on profiles versus team switching.
Team Accounts
After authentication, you can switch between different teams or your personal account using thefal team command.
View Available Teams
To list teams that you are a member of:
The
* indicates your currently active team.
Switch Teams
To switch to a different team:Verify Authentication
Test your authentication setup:Upgrading
Keep your CLI up to date:Getting Help
If you run into issues,fal --help and fal COMMAND --help provide inline documentation for every command. For community support, join the fal Discord. To report bugs or request features, open an issue on GitHub.