Getting Started
Install
Install the CLI globally or as a project dev dependency:
# globalnpm i -g @theholocron/cli
# per-project (pnpm exec holocron ...)pnpm add -D @theholocron/cliInstall the plugins you need alongside it:
pnpm add -D @theholocron/holocron-plugin-github @theholocron/holocron-plugin-vercelCreate your config
Create holocron.config.ts (or .json) in your repo root:
import { defineConfig } from "@theholocron/holocron-config";
export default defineConfig({ name: "my-project", description: "Short project description", homepage: "https://github.com/my-org/my-project", repo: { name: "my-org/my-project", protection: "balanced", topics: ["typescript", "node"], properties: { lifecycle: "active", runtime_environment: "node", }, }, workflows: ["lint", "test", "typecheck", "release"], skills: ["git-safety", "pr-workflow", "commit-standards"], agent: "claude", providers: { source: "github", ci: "github", secrets: "github", environments: "github", },});Authenticate
Store provider tokens in the OS keyring so every command picks them up automatically:
holocron auth set github.admin ghp_xxx # repo setup, secretsholocron auth set github.read ghp_yyy # clone, CI run listingholocron auth set github.issues ghp_zzz # issue managementholocron auth set github.sync ghp_aaa # sync-githubSee the Token Reference for the full list of tokens and the scopes each needs.
Verify everything is reachable
holocron doctorThis loads every configured plugin and runs a smoke check against each provider. Fix any fail rows before continuing.
Run setup
holocron setupsetup applies all infrastructure actions for the configured capabilities:
- Writes
.editorconfig,.alexrc.json,codecov.yml, andcommitlint.config.ts - Installs CI workflow thin callers from
workflows[] - Configures branch protection (from
repo.protection) - Syncs labels, repo settings, teams, security features (GitHub plugin)
- Installs agent skills (from
skills[])
Add --dry-run to see what would happen without making any changes.
Keep repo metadata in sync
After updating holocron.config.ts:
holocron syncThis syncs labels, custom properties, topics, teams, the repo description, and the homepage URL to GitHub.