@embeddables/admin client. Reads require
project.read; writes require project.write.
Install
Project and apps
getHostingProject()
Read project hosting enrollment
getHostingProject()
Read project hosting enrollment
enrollHostingProject()
Set the project slug once
enrollHostingProject()
Set the project slug once
createHostingApp()
Register an app
createHostingApp()
Register an app
updateHostingApp()
Update app settings
updateHostingApp()
Update app settings
production_branch defaults to main.
Changing production_branch immediately promotes that branch’s latest deploy when one exists.
Deploy keys
createHostingDeployKey()
Create a CI deploy key
createHostingDeployKey()
Create a CI deploy key
listHostingDeployKeys()
List deploy-key metadata
listHostingDeployKeys()
List deploy-key metadata
Previews and production
listHostingPreviews()
List previews for one git branch
listHostingPreviews()
List previews for one git branch
listHostingDeploys()
List an app's commit builds
listHostingDeploys()
List an app's commit builds
getHostingProduction()
Read the production alias
getHostingProduction()
Read the production alias
listHostingPromotions()
List production changes
listHostingPromotions()
List production changes
Custom domains
listHostingDomains()
List custom domains
listHostingDomains()
List custom domains
addHostingDomain()
Register a custom domain
addHostingDomain()
Register a custom domain
Returns
{ id, project_id, slug, repo_path, production_branch, created_at }.{ id, project_id, app_id, hostname, status, cloudflare_hostname_id, verified_at, created_at }.
Status is pending, active, or failed.{ label, url, app_slug, project_slug, ref }. Production has a null ref.{ commit, committed_at, created_at, branches, is_production }.{ id, from_script_name, to_script_name, source_label, trigger, created_at }.Errors
All SDK failures extendAdminError.

