Skip to content

Document hf spaces ssh in the Spaces Dev Mode guide#2534

Merged
Wauplin merged 1 commit into
mainfrom
docs-spaces-ssh
Jun 4, 2026
Merged

Document hf spaces ssh in the Spaces Dev Mode guide#2534
Wauplin merged 1 commit into
mainfrom
docs-spaces-ssh

Conversation

@davanstrien

@davanstrien davanstrien commented Jun 4, 2026

Copy link
Copy Markdown
Member

What

Adds the hf spaces ssh CLI command to the SSH section of the Spaces Dev Mode
guide. It resolves the Space subdomain and opens the session for you — a
shortcut to the existing manual ssh <subdomain>@ssh.hf.space flow.

Examples added: basic connect, --dry-run (print the command instead of
connecting), -i (identity file), and an --auto note (enable Dev Mode without
prompting), plus a link to the hf spaces ssh CLI reference (the page didn't
previously link to the CLI docs). The existing "register your SSH public key at
/settings/keys" line already covers the prerequisite for both the manual and CLI
paths.

Added in huggingface_hub v1.17.0 (huggingface/huggingface_hub#4241).

Verified against live v1.17.0

  • --dry-run prints ssh <namespace>-<repo>@ssh.hf.space — matches the
    subdomain form already documented above it
  • --auto enables Dev Mode without prompting
  • Dev Mode off → prompts to enable, aborts safely if declined
  • nonexistent Space → clean error

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only change with no runtime or security impact.

Overview
The Spaces Dev Mode guide’s SSH section now documents hf spaces ssh as a shortcut that resolves the Space subdomain and opens the session, alongside the existing manual ssh <subdomain>@ssh.hf.space flow.

New shell examples cover basic connect, --dry-run, -i for an identity file, and a note on --auto to enable Dev Mode without prompting. A link to the hf spaces ssh CLI reference was added; prerequisite SSH key setup is unchanged.

Reviewed by Cursor Bugbot for commit 4907909. Bugbot is set up for automated code reviews on this repo. Configure here.

Add a CLI shortcut to the Dev Mode SSH section: `hf spaces ssh` resolves the
Space subdomain and opens the session for you, with `--dry-run` and `-i`
examples plus an `--auto` note. Complements the existing manual
`ssh <subdomain>@ssh.hf.space` instructions; the existing "register your SSH
key" line covers the prerequisite for both paths.

Added in huggingface_hub v1.17.0 (huggingface/huggingface_hub#4241).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@davanstrien

Copy link
Copy Markdown
Member Author

cc @Wauplin @hanouticelina (sorry on a bit of a docs alignment sprint today...)

@Wauplin Wauplin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(sorry on a bit of a docs alignment sprint today...)

Thanks a lot for taking care of these!

@Wauplin Wauplin merged commit 9580780 into main Jun 4, 2026
3 checks passed
@Wauplin Wauplin deleted the docs-spaces-ssh branch June 4, 2026 13:55

```shell
# SSH into the Space's Dev Mode container
hf spaces ssh username/my-space

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice, TIL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants