ws. Commands: Python ·
TypeScript.
- Python
- TypeScript
hf writes. Editing a Hub file is download into a local
mount, edit it there, then upload, because a Hub write is a commit and the
filesystem has no way to say where one ends.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Set up the Hugging Face CLI with Python or TypeScript.
ws. Commands: Python ·
TypeScript.
from mirage.commands.cli.builtin.hf import HF
ws.register_cli("hf", HF, {"token": "hf_..."})
import { HF } from '@struktoai/mirage-node'
ws.registerCli('hf', HF, { token: 'hf_...' })
hf writes. Editing a Hub file is download into a local
mount, edit it there, then upload, because a Hub write is a commit and the
filesystem has no way to say where one ends.