|
Download optional-skills/devops/inference-sh-cli/references/authentication.md from SaylorTwift/hermes-agent: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/optional-skills/devops/inference-sh-cli/references/authentication.md
- Command line
-
hf download hf://SaylorTwift/hermes-agent/optional-skills/devops/inference-sh-cli/references/authentication.md
-
curl -L -o authentication.md https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/optional-skills/devops/inference-sh-cli/references/authentication.md
1.08 kB
Authentication & Setup
Install the CLI
curl -fsSL https://cli.inference.sh | sh
Login
infsh login
This opens a browser for authentication. After login, credentials are stored locally.
Check Authentication
infsh me
Shows your user info if authenticated.
Environment Variable
For CI/CD or scripts, set your API key:
export INFSH_API_KEY=your-api-key
The environment variable overrides the config file.
Update CLI
infsh update
Or reinstall:
curl -fsSL https://cli.inference.sh | sh
Troubleshooting
| 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 |
Documentation
- CLI Setup - Complete CLI installation guide
- API Authentication - API key management
- Secrets - Managing credentials