CLI Init
The packship init command is the starting point for creating a new package with PackShip. This guide explains all the options and features of this command.
Basic Usage
To initialize a new package project, simply run:
packship initIf you haven't installed PackShip globally, you can use npx:
npx packship initThis will start an interactive setup process that guides you through configuring your package.
Command Options
The init command supports the following option:
--yes, -y
Skip all prompts and use default values.
packship init -yOr with npx:
npx packship init -yUsing -y will create a package with default values. You'll need to manually edit the package.json file afterward to customize your package details.
Configuration Prompts
When running packship init without the -y flag, you'll be prompted to provide package creation information.
Examples
Quick Initialization with Defaults
packship init -yUsing npx for One-time Execution
npx packship init