Skip to content

docs: add expose ports section to Jobs configuration guide#2551

Merged
Wauplin merged 9 commits into
mainfrom
cursor/jobs-expose-ports-docs-9a33
Jun 12, 2026
Merged

docs: add expose ports section to Jobs configuration guide#2551
Wauplin merged 9 commits into
mainfrom
cursor/jobs-expose-ports-docs-9a33

Conversation

@Wauplin

@Wauplin Wauplin commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Document the new --expose / expose=[] option that lets users expose container ports through the public jobs proxy, introduced in huggingface_hub v1.19.0.

Changes

docs/hub/jobs-configuration.md — Adds an Expose Ports section covering:

  • How the feature works (proxy URL format, authentication requirements)
  • CLI usage with --expose <port> and example output
  • Python API usage with expose=[<port>]
  • The expose_urls field on JobStatus
  • Minimum version requirement (huggingface_hub >= 1.19.0) and link to pricing

docs/hub/jobs-examples.md — Adds a Sandboxes section noting that expose ports makes Jobs a great fit for building sandboxes (temporary self-contained environments for agents and LLM applications).

This complements #2550 which covers exposed-port pricing.

Slack Thread

Open in Web Open in Cursor 

Document the new --expose / expose=[] option that lets users expose
container ports through the public jobs proxy (available since
huggingface_hub v1.19.0). Includes CLI and Python examples, URL
format, and authentication requirements.

Complements #2550 which covers pricing.

Co-authored-by: Lucain <Wauplin@users.noreply.github.com>
@Wauplin Wauplin marked this pull request as draft June 11, 2026 13:05
@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.

@Wauplin Wauplin marked this pull request as ready for review June 11, 2026 13:12
Mention that expose ports makes Jobs a great fit for building
sandboxes (temporary self-contained environments for agents and
LLM applications).

Co-authored-by: Lucain <Wauplin@users.noreply.github.com>
@julien-c julien-c requested a review from davanstrien June 11, 2026 16:37

@davanstrien davanstrien left a comment

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.

Smoke-tested the feature end-to-end (CLI + Python API on a cpu-basic job) — everything works as documented. A few inline wording suggestions below.

Comment thread docs/hub/jobs-configuration.md Outdated
Comment thread docs/hub/jobs-configuration.md Outdated
Comment thread docs/hub/jobs-configuration.md Outdated

@davanstrien davanstrien left a comment

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.

Smoke-tested the feature end-to-end (CLI + Python API on a cpu-basic job) and it worked well.

Left some suggested changes for clarity but also fine if these are refined later.

Wauplin and others added 3 commits June 12, 2026 13:50
Co-authored-by: Daniel van Strien <davanstrien@users.noreply.github.com>
Co-authored-by: Daniel van Strien <davanstrien@users.noreply.github.com>
@Wauplin Wauplin merged commit 5c6d923 into main Jun 12, 2026
3 checks passed
@Wauplin Wauplin deleted the cursor/jobs-expose-ports-docs-9a33 branch June 12, 2026 11:54
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.

6 participants