init
Creates a starter deploy.config.ts, deploy.config.js or deploy.config.json file, then installs @catapultjs/deploy as a dev dependency with the detected package manager unless you pass --skip-install.
Usage
bash
npx @catapultjs/deploy initOptions
| Option | Description |
|---|---|
--skip-install | Create the config file without installing @catapultjs/deploy |
What it does
- Prompts you to choose TypeScript, JavaScript or JSON.
- Creates
deploy.config.ts,deploy.config.jsordeploy.config.jsonin the current directory. - Installs
@catapultjs/deploywith the detected package manager, unless you use--skip-install.
The JSON template includes version: 1 and the public schema reference https://catapultjs.com/schema/deploy.schema.json. See JSON configuration for the complete format.
Examples
bash
npx @catapultjs/deploy init
npx @catapultjs/deploy init --skip-installThis command does not require a deploy config file.