rebase connect
Connect external services to the active workspace.
Synopsis
rebase connect github
rebase connect github --repo rebase-energy/rebase-workspace
rebase connect github --create-repo
rebase connect huggingface
rebase connect huggingface --scope openid --scope write-reposSubcommands
| Subcommand | Description |
|---|---|
github | Connect GitHub source backing by selecting or creating a repository, then installing the Rebase GitHub App. |
huggingface | Connect local Hugging Face auth for model publication through OAuth device-code login. |
GitHub Options
| Option | Type | Description |
|---|---|---|
--profile | str | Named local credential profile. |
--api-url | str | Rebase API URL to use for this connection. Use this for local development with a port-forwarded API. |
--no-browser | bool | Print GitHub URLs instead of opening a browser. |
--repo | owner/name | GitHub repository full name to connect. |
--repo-scope | workspace or project | Whether the GitHub repository backs the whole workspace or one project. |
--repo-path | str | Optional path inside the connected repository. |
--project | str | Project name for project-scoped GitHub repo connections. |
--create-repo | bool | Open GitHub repository creation before installing the Rebase GitHub App. |
--github-installation-id | int | Existing GitHub App installation ID. |
--github-timeout | float | Seconds to wait for GitHub App installation. |
--poll-interval | float | Seconds between GitHub setup status checks. |
Hugging Face Options
| Option | Type | Description |
|---|---|---|
--profile | str | Named local credential profile used to read setup configuration. |
--api-url | str | Rebase API URL to read setup configuration from. Use this for local development with a port-forwarded API. |
--client-id | str | Hugging Face public OAuth app client ID. Defaults to REBASE_HUGGINGFACE_OAUTH_CLIENT_ID or setup config. |
--scope | str | Hugging Face OAuth scope. Repeat to override the default openid profile email write-repos scopes. |
--no-browser | bool | Print the Hugging Face authorization URL instead of opening a browser. |
--timeout | float | Seconds to wait for Hugging Face authorization. |
--poll-interval | float | Seconds between Hugging Face token polls. |
--add-to-git-credential / --no-add-to-git-credential | bool | Also store the token in Git's credential helper for Hugging Face Git operations. |
Flow
rebase connect github uses the active workspace profile saved by rebase setup. It asks whether the connection should apply at workspace or project level, asks for the repository, opens GitHub App installation, then verifies app access before saving the repo connection.
GitOps-protected environments depend on this connection. After rebase connect github, rebase deploy <file> --env prod can verify the local repository, require clean committed source, and create a GitOps deployment request instead of a direct deploy.
rebase connect huggingface starts Hugging Face OAuth device-code login, opens the Hugging Face authorization page, polls until authorization completes, then saves the token with huggingface_hub. Existing model publication code can then use HuggingFacePublishConfig(token=None).

