CLICommand referenceinit
init
Commands, arguments, and options for openship init.
See the workflow guide for examples. Global flags such as --json go before the command; see global options.
openship init
Link the current directory to an Openship project (.openship/project.json)
openship init [options]| Option | Meaning |
|---|---|
--project <id> | Project id to link (skips the picker) |
--environment <name> | Default deploy environment (default: "production") |
--dir <path> | Directory to initialize (default: ".") |
--force | Overwrite an existing project link |
-y, --yes | Non-interactive: fail instead of prompting |