source
Manage the repositories of a project and run the steps of a deploy individually.
lly source [list]
lly source show <SOURCE_ID>
lly source add <REPO> [--ref <REF>] [--token <TOKEN>]
lly source select <SOURCE_ID> --apps <ROOT,...> [--slug <ROOT=NAME>]
lly source configure <SOURCE_ID> [--config <FILE>] [--env ...] [--port ...] [--db ...] [--edge ...] [--args ...]
lly source remove <SOURCE_ID>A source is a repository at a ref, connected to a project. deploy runs all steps at once. lly source runs them individually, for scripts that need to act between steps. It uses the selected project; --project selects another one.
list
Source Repository Revision Flow Apps
src_1 acme/shop@main a1b2c3d deployed copperfox, cinderrockshow
lly source show src_1Shows the scan result: each root with framework, support status and selection, the proposed configuration of the primary root (variables, ports, databases, connections) and the build progress of each root.
add
lly source add acme/shop --ref mainAdds a repository to the project and starts the fetch and scan. Default ref: main. owner/name is fetched through your GitHub connection. For a github.com URL, --token sets a GitHub token for the download. The token is not stored, so the source cannot be redeployed later.
select
lly source select src_1 --apps apps/web,services/api --slug apps/web=webSelects the roots to build after the scan. --slug sets the app name. LILY assigns the slug.
configure
lly source configure src_1 --config lily.toml
lly source configure src_1 --env apps/web:NODE_ENV=production --port apps/web=3000Confirms the configuration and starts the build. Fields not given keep the proposal. Connections are only sent if --edge is given; otherwise the proposed connections apply. The flags are the same as for deploy, without --env-file.
remove
Removes a source without apps.
JSON output
list and show: the raw sources. add and select: {"source_id", "state"}. configure: {"source_id", "state", "apps"}.