/selise-blocks:blocks-release-deploymentfrom selise-blocks
Triggers and inspects SELISE Blocks Release builds and deploys via `blocks release` CLI: deploy, status, logs, secrets sync, and SAST/SCA reports.
Ships in selise-blocks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When invoking a project-scoped blocks command, either use the resolved account's saved selection or pass --project <tenantId> for that one command without changing saved state. --project applies to CLI commands only, never SDK calls.
Trigger and read Release builds through blocks release *. This is 100% CLI,
no SDK equivalent: @seliseblocks/client has no release namespace. Never
write a frontend/app-code path for this; use the terminal command.
Prerequisite: a project is selected (blocks use <tenantId>) and that project has a repo linked from the Blocks portal — see the blocks-bootstrap skill. There is no local config file for release settings. blocks/release/repos.json is only a read-only snapshot of the project's registered repos, written by blocks pull --only release: read it for context, but never edit it to change anything. Release commands resolve which repo to act on from the project's registered repos (see below), not from any file on disk.
blocks release repos list [--json] — the repositories registered in blocks-release for this project: repoId, name, branch, lastDeploymentStatus, url, namespace. Run this first when you need a repo id or name.blocks release repo get <repo> [--json] — one repo's details plus its most recent builds; <repo> is a name or id.blocks release status <buildId> [--wait] [--follow] [--json] — one build's status by id (positional arg, or --build-id <id>), plus a stable verdict field: succeeded, failed, or running, derived from the build's status field. --wait polls until terminal; --follow also streams pipeline events to stderr. In --json mode stdout is always exactly one document.blocks release logs <buildId> [--follow] [--group Clone|Build|Deploy|Sast|Sca] [--json] — the build's stored pipeline events; --follow keeps streaming new events until the build is terminal.blocks release builds list [<repo>] [--branch <b>] [--page <n>] [--page-size <n>] [--json] — paged builds for one repository, addressed by name or id. When the selector is omitted and exactly one repo is registered, it's auto-picked; with multiple repos it fails with repo_ambiguous listing the candidates — it never prompts interactively, so it is safe in agent/CI runs.blocks release settings list [--json] — the hosting choices release setup accepts (provider → region → machine spec, each with id and name).blocks release git repos [--provider github] [--search <s>] [--json] / blocks release git branches <owner/repo> [--json] — browse the connected source-control account. Only github is active; other providers fail with provider_not_supported.blocks release reports get <buildId> --type sast|sca-container|sca-libraries|dast [--json] — the build's SonarQube (SAST), Dependency-Track (SCA, split into the container-image scan and the library-manifest scan), or DAST report. These are the server's exact type names; a plain sca is rejected with invalid_report_type.blocks release monitor list [--repo <name|id>] [--json] — monitoring/alerting entries for a deployed repo.blocks release secrets list [--repo <name|id>] [--json] / secrets audit — secret-set metadata and audit trail; neither ever returns key names or values.None of these mutate anything — safe to run without confirmation.
blocks release deploy --dry-run --json # show the exact plan first
blocks release deploy --yes --json # only after the user approves
deploy re-deploys an already-configured repo (Build/manual). For a repo that has never been deployed, use blocks release setup instead (Build/run-build — it creates the deployment namespace and push webhook, and takes optional --hosting-provider/--region/--machine-config, each a name or id from release settings list).
deploy resolves the repo in this order:
--repo <name|id> — matched against the project's registered repos (release repos list); ambiguous or unknown selectors throw repo_ambiguous/repo_not_found with the candidates listed.name matches the project's environment (case-insensitive); if none matches, it throws repo_ambiguous.repo_not_linked.Before building, deploy (and setup) compares the resolved repo's linked branch to the project's environment (case-insensitive). If they don't match, it throws branch_environment_mismatch rather than building the wrong branch.
| Code | Meaning | Fix |
|---|---|---|
repo_not_linked | No repo is linked/registered for this project at all. | Link a repo from the Blocks portal (requires GitHub OAuth), then re-run. |
repo_ambiguous | Multiple repos and no unambiguous selector. The message lists the candidates. | Pass `--repo <name |
repo_not_found | The selector or linked asset id wasn't found in blocks-release. | Run blocks release repos list and use a listed name or id. |
branch_environment_mismatch | The repo's branch isn't the project's environment branch (e.g. repo is on main but environment is stg). Each environment deploys from the branch of the same name, except prod, which deploys from main. | Point the linked repo at the environment's branch, or relink the correct branch from the Blocks portal. |
build_wait_timeout | Only with --wait/--follow: no terminal status before --timeout elapsed. | Check with blocks release status <buildId> or keep watching with --wait. |
provider_not_supported | A --provider other than github on the git commands. | Only GitHub is active in blocks-release today. |
deploy--repo <name|id> — pick the repo explicitly instead of auto-resolving.--with-secrets <dotenvFile> — before deploying, runs release secrets sync for that file (see below).--domain <domain> — before triggering the build, sets a custom deployment domain for this repo/environment (also available standalone as release domain set <domain>).--register-callback — see the OIDC-callback gotcha below: registers <deployed-url>/login/callback on the app's OIDC client when the check finds it missing (also on release setup and release domain set).--wait — after triggering, polls the build's status field until it reaches one of the server's terminal values (Succeeded/Failed/Cancelled/Timeout/…), then prints one final {buildId, status, verdict, build} document.--follow — implies --wait and additionally streams pipeline events to stderr while polling.--poll-interval <seconds> — polling interval, default 10.--timeout <seconds> — max wait, default 900.All wait/follow progress goes to stderr; stdout stays a single parseable document in --json mode. --dry-run prints the resolved repoId, branch, environment, projectKey, planned steps, and (if given) domain/secretsFile. The real deploy request is simply { repoId }. Always show the --dry-run output and get explicit approval before re-running with --yes — never skip straight to --yes.
blocks release secrets sync --file .env --dry-run --json # plan: key NAMES only
blocks release secrets sync --file .env --yes --json
The server stores one whole secret set per repo. Sync merges the dotenv file over the current set by default (an audited read backs the diff; if that read fails for any reason other than "no set yet", sync stops with secrets_read_failed and saves nothing) and never removes keys unless --prune is passed, which makes the file the entire set and lists the removed key names in the plan. Values are never displayed by any output, dry-run included. A no-change run reports upToDate without writing. Related lifecycle commands: secrets lock|unlock|delete|restore act on the whole set; delete is soft and restore undoes it.
blocks release teardown <repo> cancels in-flight builds and deletes the Kubernetes namespace of that repo's deployment. It requires the repo named explicitly (name or id) — there is deliberately no "the only repo" fallback — and its confirmation states the namespace and served URL being destroyed. Not undoable. Always --dry-run first and get explicit user approval; never run it with --yes on your own judgment.
release deploy triggers a configured pipeline/repository build — it does not accept or upload a build artifact you hand it. If a user asks to "upload my build and deploy it," that capability doesn't exist in this CLI; say so rather than inventing an upload flag.blocks use. Behavior changes if the selected project changes; there is no account-level/project-independent mode here.--repo, positionals). Prefer the id when two repos could share a name.release setup vs release deploy: setup is the first-time deploy (creates namespace + webhook, takes hosting settings); deploy re-deploys with the stored settings. Running setup twice risks duplicate webhooks — if unsure whether a repo was deployed before, check release repos list for a namespace/lastDeploymentStatus first.redirect_uri_not_registered unless the deployed callback is registered. release setup assigns a random-suffixed domain (<project>-<random>.slsblx.com), and the scaffold only registers the local dev origin's /login/callback on the OIDC client. setup/deploy/domain set check the project's OIDC clients after the URL resolves and warn on stderr with the exact auth oidc-clients save fix; pass --register-callback to append it in the same run. Advisory only — a missing callback never fails the deploy, a project with no OIDC clients is skipped silently, and the repo's secret set is only read (audited) to pick the app's client when several exist.buildId for status/logs/reports get is always required, never guessed — ask the user rather than assuming a value.--dry-run before --yes, always — same discipline as every other mutating blocks command in this pack.release setup X (after release settings list if hosting flags are wanted).<buildId>."<buildId>." → release logs <buildId> (add --follow while it's running).<buildId>."release secrets sync --file .env (dry-run first).--wait (or --follow for live events; optionally --poll-interval/--timeout).--domain <domain> (or release domain set <domain>).release reports get <buildId> --type sast (and --type sca-libraries / --type sca-container).release teardown X, dry-run + explicit approval first.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
25 skills in this plugin
/blocksStart here for any SELISE Blocks work. Routes a plain-language request — sign-in and projects, SSO, users, roles, MFA, data schemas and records, file storage, translations, mail, notifications, workflows, functions, proxies, secrets, deployments — to the right Blocks skill, and carries the rules every Blocks skill follows: the blocks CLI and @seliseblocks/client SDK only, never raw HTTP to the platform API; --dry-run before --yes; never read the CLI's credential files; when to report a finding. Use whenever work touches SELISE Blocks, the blocks CLI, or @seliseblocks/client./blocks-bootstrapGet a user from any starting state to a working SELISE Blocks setup — CLI installed, logged in, project selected — using the `blocks` CLI, never raw fetch/curl. Detects state from `blocks auth status --json` and `blocks doctor --json`, then routes to a flow: select or create a project, inventory a project that already exists, resolve the app's OIDC client, add a social identity provider, create the first end user, scaffold a new web app, or wire an existing one. Use for a new user, for `not_logged_in`/`project_not_selected`, or whenever login/project/app state is unclear./blocks-captchaConfigure the login captcha of a SELISE Blocks project through the blocks CLI ('captcha list/get/save/enable/disable/delete'): register a reCAPTCHA or hCaptcha site key and secret, switch it on or off, see which configuration blocks-iam actually enforces at login, and retire one. CLI-only, project-scoped; the captcha secret is stored server-side and never shown. Use for 'enable captcha on login', 'change the recaptcha keys', 'why is captcha not showing', 'turn captcha off'./blocks-data-gateway-configurationConfigure a SELISE Blocks project's data model via the blocks CLI — never raw fetch/curl against api.seliseblocks.com. Covers data-source config (data config get/create/update), schema authoring and push (data schema list/pull/push, plus granular get/fields/info/indexes commands), data-access policies (data rules pull/deploy/policy), field-level validation rules (data validation *), and reloading so changes go live (data reload, or the composed data sync). Use for defining, editing, securing, validating, or reloading a project's DATA MODEL — schema fields, access policies, and validation rules./blocks-data-gateway-crudImplement create/read/update/delete against a SELISE Blocks project's runtime Data Gateway using the @seliseblocks/client SDK. Use data.collection(schemaName) for straightforward per-item CRUD, data.graphql() for joins or custom query shapes, and data.schemas.*/data.validations.* for schema/validation metadata. Shows how to wire CRUD into the React 18 + Vite + TanStack Query app that blocks new web scaffolds. Use whenever the user wants to read or write actual records through a Blocks Data schema from app code./blocks-data-storageBuild file and document-management features on SELISE Blocks Data: upload/download, directory trees, cursor-paginated browsing and search, file versions, rename/move/copy, soft delete/trash/restore, sharing, access policies, and inheritance. Use for attachments, file browsers, folders, shared files, permissions, or version history. Use 'blocks data files *' for terminal/admin work and @seliseblocks/client data.files/data.directories/data.objects for app code.npx claudepluginhub selisedigitalplatforms/blocks-skills --plugin selise-blocksOther plugins' skills for the same job