Skip to documentation
Docs navigation
Docs/config
CLI

config

Understand generated configuration and CLI resolution rules.

Purpose

Understand generated configuration and CLI resolution rules.

Command

terminal
npx memo-grafter init

Behavior

CLI flags take precedence when supported.
Environment variables are resolved next.
Generated src/memo-grafter/mg.config.ts supplies project defaults.
Keep secrets out of committed configuration.

Troubleshooting

Run the command from the package that contains MemoGrafter.
Confirm environment variables are loaded in the current shell.
Use --help to inspect options supported by the installed version.