huggingface_hub
20eece85 - [CLI] Add `hf spaces ssh` (#4241)

Commit
2 days ago
[CLI] Add `hf spaces ssh` (#4241) * [CLI] Add `hf spaces ssh <space_id>` * [CLI] Improve `hf spaces ssh`: dev_mode check, --dry-run, --auto - Fix dev mode detection: use `SpaceRuntime.dev_mode` (from API `devMode` field) instead of checking `subdomain` presence. - Rename `--print` to `--dry-run` (follows gcloud/git/make convention). - Add `--auto` flag to enable Dev Mode without prompting. - If dev mode is off, prompt user to enable it (interactive confirm). - Extract `_wait_for_dev_mode` helper shared by `dev-mode` and `ssh`. - Remove unnecessary `FileNotFoundError` catch on `ssh` subprocess. - Mention `hf spaces ssh` in `dev-mode` output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix quality * fixes * add confirm param * better * docs --------- Co-authored-by: Lucain Pouget <lucainp@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Author
Parents
Loading