|
Download skills/hf-cli.md from gokashi/ml_in_elixir_code: direct link, hf CLI and curl.
- Browser
- Download file 2.3 kB
-
https://huggingface.co/gokashi/ml_in_elixir_code/resolve/main/skills/hf-cli.md
- Command line
-
hf download hf://gokashi/ml_in_elixir_code/skills/hf-cli.md
-
curl -L -o hf-cli.md https://huggingface.co/gokashi/ml_in_elixir_code/resolve/main/skills/hf-cli.md
2.3 kB
| # Skill: hf-cli | |
| Install: `curl -LsSf https://hf.co/cli/install.sh | bash -s`. | |
| The Hugging Face Hub CLI tool `hf` is available. IMPORTANT: The `hf` command replaces the deprecated `huggingface-cli` command. | |
| Use `hf --help` to view available functions. Note that auth commands are now under `hf auth` e.g. `hf auth whoami`. | |
| Generated with `huggingface_hub v1.8.0`. Run `hf skills add --force` to regenerate. | |
| ## Commands | |
| - `hf download REPO_ID` β Download files from the Hub. `[--type CHOICE --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --quiet --max-workers INTEGER]` | |
| - `hf env` β Print information about the environment. | |
| - `hf sync` β Sync files between local directory and a bucket. `[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --quiet]` | |
| - `hf upload REPO_ID` β Upload a file or a folder to the Hub. Recommended for single-commit uploads. `[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --quiet]` | |
| - `hf upload-large-folder REPO_ID LOCAL_PATH` β Upload a large folder to the Hub. Recommended for resumable uploads. `[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --num-workers INTEGER --no-report --no-bars]` | |
| - `hf version` β Print information about the hf version. | |
| ### `hf auth` β Manage authentication (login, logout, etc.). | |
| - `hf auth list` β List all stored access tokens. | |
| - `hf auth login` β Login using a token from huggingface.co/settings/tokens. `[--add-to-git-credential --force]` | |
| - `hf auth logout` β Logout from a specific token. `[--token-name TEXT]` | |
| - `hf auth switch` β Switch between access tokens. `[--token-name TEXT --add-to-git-credential]` | |
| - `hf auth whoami` β Find out which huggingface.co account you are logged in as. `[--format CHOICE]` | |
| ... (additional commands omitted for brevity) ... | |
| ## Tips | |
| - Use `hf <command> --help` for full options, descriptions, usage, and real-world examples | |
| - Authenticate with `HF_TOKEN` env var (recommended) or with `--token` | |
| Base directory for this skill: file:///home/saru/.agents/skills/hf-cli | |