hf spaces dev-mode enables and disables Space development mode
Introduced 2026-03-06 · score 0.97
HOW TO USE IT
When iterating on a Space, enable dev mode to restart its application without stopping the Space container. Wait for readiness and follow the printed connection instructions; pass `--stop` to disable dev mode.
hf spaces dev-mode <username>/<my-space>hf spaces dev-mode <username>/<my-space> --stopWHY THIS HELPS
Iterate on a Space while restarting its application without stopping the Space container.
REQUIREMENTS AND LIMITATIONS
- Version: v1.6.0
- SPACE_ID (required): Space ID, for example `username/repo-name`.
- --stop / --no-stop: Stop dev mode; default is `--no-stop`.
- --token TEXT: User Access Token for authentication.
- Prerequisite: Dev Mode requires a PRO or Team & Enterprise plan.
FIRST-PARTY EVIDENCE
- https://github.com/huggingface/huggingface_hub/releases/tag/v1.6.0
- https://huggingface.co/docs/huggingface_hub/en/package_reference/cli
- https://huggingface.co/docs/hub/en/spaces-dev-mode
Check the installed version and the source before using it. Entry JSON