curl -fsSL https://cli.inference.sh | sh
infsh login
This opens a browser for authentication. After login, credentials are stored locally.
infsh me
Shows your user info if authenticated.
For CI/CD or scripts, set your API key:
export INFSH_API_KEY=your-api-key
The environment variable overrides the config file.
infsh update
Or reinstall:
curl -fsSL https://cli.inference.sh | sh
| Error | Solution |
|---|---|
| "not authenticated" | Run infsh login |
| "command not found" | Reinstall CLI or add to PATH |
| "API key invalid" | Check INFSH_API_KEY or re-login |