Managed releases
Publish immutable template and block artifacts through the DeesseJS CLI.
Managed releases let authorized authors publish template or block snapshots without making source repositories public. The API decides ownership, roles, paid seats, version order, archive validation, and download access.
The release and organization commands in this guide emit JSON to stdout by default. Use --verbose for human-readable output. When users pass both flags, --json keeps JSON output. Errors cause a nonzero exit code. Prompts and diagnostics go to the standard error stream.
Publish a release
Create a template metadata entry in Admin or in the organization template manager first. A managed-only entry has no GitHub repository identity. Commit a clean local template project before publishing. The root descriptor needs a canonical stable version in MAJOR.MINOR.PATCH SemVer. Increase the version for each release. The first valid publish sets the initial version. The CLI archives files selected by the template's includes and excludes, or by the block's install file list.
deessejs auth login
deessejs organization template add my-organization --source managed --slug my-template --name "My Template" --category saas
deessejs template publish --slug my-template --destination my-organization
deessejs block publish --slug my-block --destination my-organizationPublishing reads the stable version already present in the template or block descriptor. Use deessejs template version patch|minor|major to prepare the next version. --verbose prints a human-readable confirmation. --json selects JSON and overrides --verbose.
Set --destination deessejs for platform releases. Platform publishing requires an administrator. Organization publishing requires a managing role and an assigned active paid seat under an active qualifying subscription. PR #577 adds the separate version-bump commands.
Publishing and catalog review serve different purposes. Run deessejs organization template request-listing <organization> <slug> --confirm-distribution-rights to request public catalog review. This request neither publishes a managed release nor approves a catalog entry.
The request-listing command also emits JSON by default. Add --verbose for a human confirmation, or combine it with --json to keep JSON output.
List and initialize
Run deessejs template releases [slug] to list ready platform releases without exposing storage keys. Add --organization <organization-slug> to list private releases you can access.
The command returns JSON by default. Use deessejs template releases --verbose for a human-readable list. --verbose --json still returns JSON.
Run deessejs init <slug> to use the source selected by the API. The CLI lists managed-only templates before their first publish and marks them non-installable until a release becomes ready. Initialize an organization-owned template with deessejs init <slug> --organization <organization-slug>. Organization release listing and installation require membership and an assigned active paid seat. Only administrators can publish platform releases. Add a private block with deessejs add <block-slug> --target <package-id> --organization <organization-slug>. Paid templates and blocks require an active Pro seat assigned to your membership in an organization with a qualifying subscription. For platform paid releases, select that organization with deessejs organization use <slug>. Selection alone grants no Pro access. The API checks subscription and seat eligibility for each protected request. Public GitHub templates continue to use their pinned public source.
deessejs template info <slug> reads public GitHub descriptors without a seat check. For protected managed templates, info resolves managed release metadata and requires an active organization and assigned Pro seat, as initialization does. The server checks entitlement on each request.
deessejs organization use my-organization
deessejs template info paid-template
deessejs template init paid-templateBoth commands produce JSON results by default. Pass --verbose to init for human-readable progress, or to add to see its planned file changes and human-readable result. Before writing, add always asks for confirmation: it prompts in an interactive terminal and requires the explicit --yes consent flag when the process has no terminal. --dry-run previews the plan without writing. In JSON mode, prompts and plan notices go to the standard error stream, while result JSON stays on stdout. --json overrides --verbose.
An unqualified version resolves to the highest ready, non-withdrawn release. If that release gets withdrawn, resolution falls back to the next eligible version. Explicit requests for withdrawn versions return no result. Re-publishing the same version and bytes remains idempotent. Changed bytes require a higher version.
Storage and limits
Configure two distinct private buckets: R2_TEMPLATE_RELEASES_STAGING_BUCKET and R2_TEMPLATE_RELEASES_BUCKET. Reuse the existing R2 account and credential variables. The staging bucket needs a lifecycle rule that deletes abandoned uploads after a short period. The API checks archive paths and entry types. It caps compressed archives at 100 MiB and expanded content at 200 MiB. It seals exact bytes under a server-generated key. It returns short-lived download URLs scoped to one artifact.
Templates may declare previewImage in deesse-template.json. The API stores a Portable Network Graphics (PNG), Joint Photographic Experts Group (JPEG), or WebP image from the validated archive bytes. Without a preview image, the catalog shows its placeholder. Authors have no manual preview upload option.
Local development needs no R2 credentials. API tests use a fake storage adapter. Before production launch, test non-production Cloudflare R2 buckets. Check permissions, signed uploads and downloads, content type, and the staging lifecycle rule.