55982159dd
New tests/skills/test_authoring_standards.py parametrizes every bundled + optional SKILL.md (1148 checks) against the mechanically-verifiable subset of the hardline standards: - required frontmatter fields (name/description/version/author/license/ platforms) + tags - frontmatter name == directory name - description <= 60 chars, ends with period, no marketing words - related_skills resolve in-repo - no machine-local paths - <= 100k chars Grandfather dict for legacy debt ships EMPTY — all pre-existing violations fixed in this PR: - 13 frontmatter names canonicalized to their directory names (the install identifier); all related_skills references updated (comfyui -> stable- diffusion). Fixes the class behind PR #42788's report; also fixes here.now's invalid dot-name. - optional-skills/devops/cli -> inference-sh-cli (dir was the generic 'cli'; fm name was right) incl. docs pages (en + zh-Hans), catalog row, sidebar entry. - pytorch-fsdp: 157k generated 'Quick Reference' dump moved to references/common-patterns.md; SKILL.md 159k -> 2.5k with a pointer. - research-paper-writing: 31.7k Phase 5 drafting section moved to references/phase5-paper-drafting.md; SKILL.md 103k -> 71k. Docs regenerated with scope discipline.
60 lines
1.1 KiB
Markdown
60 lines
1.1 KiB
Markdown
# Authentication & Setup
|
|
|
|
## Install the CLI
|
|
|
|
```bash
|
|
curl -fsSL https://cli.inference.sh | sh
|
|
```
|
|
|
|
## Login
|
|
|
|
```bash
|
|
infsh login
|
|
```
|
|
|
|
This opens a browser for authentication. After login, credentials are stored locally.
|
|
|
|
## Check Authentication
|
|
|
|
```bash
|
|
infsh me
|
|
```
|
|
|
|
Shows your user info if authenticated.
|
|
|
|
## Environment Variable
|
|
|
|
For CI/CD or scripts, set your API key:
|
|
|
|
```bash
|
|
export INFSH_API_KEY=your-api-key
|
|
```
|
|
|
|
The environment variable overrides the config file.
|
|
|
|
## Update CLI
|
|
|
|
```bash
|
|
infsh update
|
|
```
|
|
|
|
Or reinstall:
|
|
|
|
```bash
|
|
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](https://inference.sh/docs/extend/cli-setup) - Complete CLI installation guide
|
|
- [API Authentication](https://inference.sh/docs/api/authentication) - API key management
|
|
- [Secrets](https://inference.sh/docs/secrets/overview) - Managing credentials
|