preset
Decode a preset code into its archetype, features, stack and services, or print the permdock.com/create link that opens it.
permdock preset decode <code> prints what a preset code holds. permdock preset url <code> prints the /create link that opens it in the builder.
permdock preset decode p1AQIDBAc
permdock preset decode p1AQIDBAc --json
permdock preset url p1AQIDBAcdecode ends with the permdock init flags that select the same preset, leaving out defaults and the features the archetype and integrations turn on:
archetype b2b
features tenancy, custom-roles, operations, decision-log
auth custom
backend memory
framework next
integrations mcp, shadcn
services none
permdock init --archetype b2b --integration mcp --integration shadcnWith --json, data is the preset: { archetype, features, auth, backend, framework, integrations, services }. url answers { url }.
A code this version does not read, including one with a newer version prefix, exits 2.
Side effects
What each command may change; side effects explains each one.
| Command | Side effects |
|---|---|
permdock preset decode | None |
permdock preset url | None |
Last updated on
init
Write a preset's permissions, policy, app definition and framework wiring into a project from a permdock.com/create code or from flags, keep every file that already exists, and print the install and shadcn commands to run.
scan
List the authorization checks in an existing app that do not go through PermDock - role comparisons, hasRole and hasPermission helpers, CASL abilities, Clerk has() and role claims - as the work left before PermDock decides on its own.