holocron deploy builds your docs site and uploads it to Holocron hosting. It is
the fastest way to publish a site without managing your own server or Cloudflare
Worker.1npx -y @holocron.so/cli deploy
main) deploys to:1https://<repo>-<owner>-site.holocron.so
remorses/my-docs on main → https://my-docs-remorses-site.holocron.so.holocron_url).1https://<projectId>-site.holocron.so
HOLOCRON_KEY env var — API key scoped to a specific project. The server resolves the org and project from the key. No flags needed.npx -y @holocron.so/cli login — if the account has multiple projects, pass --project prj_xxx or the CLI prompts interactively.permissions: id-token: write. No API key or login needed if the repo owner matches the Holocron account.12npx -y @holocron.so/cli login npx -y @holocron.so/cli deploy
1HOLOCRON_KEY=holo_xxx npx -y @holocron.so/cli deploy
--project, or selected interactively at deploy time.12permissions: id-token: write
head_ref OIDC claim (the PR source branch). Marked as preview automatically.ref claim stripped to branch name (refs/heads/main → main). Compared against the project's default branch to decide production vs preview.--branch <name> CLI flag.npx -y @holocron.so/cli whoami to see all orgs
and projects.projects create prompts which org to
use. Pass --org <orgId> to skip the prompt:1npx -y @holocron.so/cli projects create --name "My Docs" --org <orgId>
--org is not
needed for deploys.GITHUB_OUTPUT is
available:12holocron_url=https://... holocron_deployment_id=dep_...
holocron deploy uses the special deploy build output at dist/.holocron/.
The server bundle is uploaded as Worker files and the client bundle is uploaded
as static assets.