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 repositoriesProject 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 init | lly deploy | |
|---|---|---|
| Repository | GitHub only | Current directory first, then GitHub |
| Default ref | Default branch | Checked-out branch |
| Project | New project | Linked or existing project, otherwise new |
| Repeated run | Continues in the project with the same name | Redeploys the same apps |