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-repos

Subcommands

SubcommandDescription
githubConnect GitHub source backing by selecting or creating a repository, then installing the Rebase GitHub App.
huggingfaceConnect local Hugging Face auth for model publication through OAuth device-code login.

GitHub Options

OptionTypeDescription
--profilestrNamed local credential profile.
--api-urlstrRebase API URL to use for this connection. Use this for local development with a port-forwarded API.
--no-browserboolPrint GitHub URLs instead of opening a browser.
--repoowner/nameGitHub repository full name to connect.
--repo-scopeworkspace or projectWhether the GitHub repository backs the whole workspace or one project.
--repo-pathstrOptional path inside the connected repository.
--projectstrProject name for project-scoped GitHub repo connections.
--create-repoboolOpen GitHub repository creation before installing the Rebase GitHub App.
--github-installation-idintExisting GitHub App installation ID.
--github-timeoutfloatSeconds to wait for GitHub App installation.
--poll-intervalfloatSeconds between GitHub setup status checks.

Hugging Face Options

OptionTypeDescription
--profilestrNamed local credential profile used to read setup configuration.
--api-urlstrRebase API URL to read setup configuration from. Use this for local development with a port-forwarded API.
--client-idstrHugging Face public OAuth app client ID. Defaults to REBASE_HUGGINGFACE_OAUTH_CLIENT_ID or setup config.
--scopestrHugging Face OAuth scope. Repeat to override the default openid profile email write-repos scopes.
--no-browserboolPrint the Hugging Face authorization URL instead of opening a browser.
--timeoutfloatSeconds to wait for Hugging Face authorization.
--poll-intervalfloatSeconds between Hugging Face token polls.
--add-to-git-credential / --no-add-to-git-credentialboolAlso 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).

On this page