init

Deploy a GitHub repository as a new project.

lly init [OWNER[/NAME] | URL] [options]

Runs the same process as deploy, with two differences: it only offers GitHub repositories, not the repository of the current directory, and it targets a new project.

Examples

lly init acme/shop
lly init acme/shop --name shop-staging --ref staging
lly init acme      # choose from the repositories of acme
lly init           # choose from all your repositories

Project name

The project is named after the repository unless --name or [project] name in lily.toml sets another name. If a project with that name exists, lly uses it only if it is empty or already deploys this repository. Otherwise it suggests a free name such as shop-2. -y accepts the suggestion.

Without --ref, init deploys the default branch of the repository, independent of the local checkout.

Options

Same as deploy except --new: --ref, --name, --apps, --all, --slug, --env, --env-file, --port, --db, --edge, --args, --config, --save, --detach.

init or deploy

lly initlly deploy
RepositoryGitHub onlyCurrent directory first, then GitHub
Default refDefault branchChecked-out branch
ProjectNew projectLinked or existing project, otherwise new
Repeated runContinues in the project with the same nameRedeploys the same apps

On this page