Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/cli / / InitCommandOptions

Interface: InitCommandOptions

Defined in: packages/cli/src/commands/init.ts:37

Stable

Properties

PropertyModifierTypeDescriptionDefined in
app?readonlybooleanAlso scaffold a graphorin.app.mjs compose module next to the config and reference it via the config's app field, so graphorin start serves the full domain surface (sessions / memory REST adapters over the configured SQLite store) instead of the bare infrastructure daemon. Default false - the historical infra-only init is unchanged.packages/cli/src/commands/init.ts:61
cloudConsent?readonly"public-only" | "public-and-internal" | "all-with-warnings"-packages/cli/src/commands/init.ts:50
cwd?readonlystring-packages/cli/src/commands/init.ts:52
dryRun?readonlybooleanTest seam: skip writing files (only print the report).packages/cli/src/commands/init.ts:70
encrypted?readonlyboolean-packages/cli/src/commands/init.ts:51
format?readonly"json" | "ts"Config flavour. 'ts' (default) writes a defineConfig graphorin.config.ts - loading it later requires a Node that can import TypeScript (23.6+/22.18+ type stripping or a registered loader like tsx) AND @graphorin/server resolvable from the config's directory. 'json' writes a plain graphorin.config.json with the same content (the docker-template flavour) that loads anywhere with zero runtime requirements.packages/cli/src/commands/init.ts:48
nonInteractive?readonlyboolean-packages/cli/src/commands/init.ts:49
out?readonlystring-packages/cli/src/commands/init.ts:38
pepperOut?readonlystringdeep-retest-0.13.11: CI-safe pepper handling. Write the generated pepper hex to this file (mode 0600, never overwrites) INSTEAD of printing it - non-interactive bootstrap logs (CI, image builds) otherwise capture the key material behind every token HMAC.packages/cli/src/commands/init.ts:68
print?readonly(line) => voidTest seam: redirect stdout/err.packages/cli/src/commands/init.ts:72