Skip to content
Create
D9 App
pages

Usage

The create-d9-app command, its prompts and flags, and how it runs without a terminal.

Usage

Usage: create-d9-app <dir> [options]

Arguments:
  <dir>          Directory to create the project in; "." uses the current directory

Options:
  --yes          Accept every default and skip all prompts
  --no-git       Do not initialise a git repository or make the initial commit
  --no-install   Do not run pnpm install
  --integrations <names>
                 Comma-separated agent integrations to configure, or "none"
  --help         Show this message

Scaffold into the current directory. It must be empty apart from .git, .gitignore, .idea, .vscode, LICENSE and .DS_Store:

mkdir my-app && cd my-app
pnpm create @draekien/d9-app .

The package name in package.json is the directory name, so the directory name has to be a valid npm package name: lowercase, URL-safe, not a Node built-in module name.

Prompts and flags

Every prompt has a flag. A flag answers its prompt without asking.

PromptDefaultFlag
Where should the project be created?my-app<dir>
Initialise a git repository?yes--no-git
Install dependencies?yes--no-install
Which agent integrations do you want?shadcn, hugeicons, motion--integrations <names> or --integrations none

After an interactive run the CLI prints the command that reproduces your answers:

To create a project with the same options
pnpm create @draekien/d9-app my-app --yes --no-git

Non-interactive use

With --yes, or when stdin is not a terminal, or when CI is set, nothing is prompted. Every option not set by a flag takes its default. <dir> is required unless --yes supplies the default my-app:

pnpm create @draekien/d9-app my-app --yes
pnpm create @draekien/d9-app --yes --no-install
$ CI=1 pnpm create @draekien/d9-app
Missing required <dir>. Pass a project directory or --yes to use the default.