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]
OptionMeaning
--project <id>Project id to link (skips the picker)
--environment <name>Default deploy environment (default: "production")
--dir <path>Directory to initialize (default: ".")
--forceOverwrite an existing project link
-y, --yesNon-interactive: fail instead of prompting

On this page