Quickstart
Deploy your first app from a GitHub repository, in the console or with the CLI.
LILY deploys apps straight from your GitHub repositories. It detects every app in a repository, proposes its environment variables and ports, and builds it once you confirm. This page takes one repository from sign-up to a live address.
Before you start
- A GitHub account and a repository with a supported app: Next.js, JavaScript, Rust, or C and C++ with CMake or Make. See Supported frameworks.
- Your latest commit pushed to GitHub. LILY builds from GitHub, not from your local files.
- The examples use an app called
copperfox. The console shows an app by its name. The CLI uses its address name, the first part of the app's address. In the examples both arecopperfox.
Steps
Create an account and sign in
Sign up at platform.lilylabs.io with your email address, Google or GitHub.
Install lly on macOS or Linux, then sign in. lly login opens the browser and shows a code to confirm.
curl -fsSL https://get.lilylabs.io/install.sh | sh
lly loginFor Windows and install options, see CLI.
Connect GitHub
Paste a repository link, or connect your GitHub account and search your repositories, private ones included.
lly needs a GitHub connection. If it is missing, lly deploy stops before it creates anything and shows where to connect GitHub.
Choose the repository and the apps
Enter a project name. LILY scans the repository and lists the apps it found, with their path and framework. In a monorepo, each app is listed separately. Select the apps to deploy.
Run lly deploy in a clone of the repository. It creates a project named after the repository and shows the detected apps, with all supported ones selected.
lly deployTo deploy a repository without a local clone, use lly init acme/shop. See init or deploy.
Review the configuration
LILY proposes environment variables, ports and connections for each app. Detected values are prefilled.
Review the arguments, environment variables and ports of each app, and fill in variables that are still empty.
lly asks for the values of empty variables and asks you to confirm each proposed connection.
Deploy
Check the summary, then deploy. The project canvas opens and shows the status of each app.
lly follows the build and prints a summary when the apps are live:
Apps
App Phase URL Since
copperfox deployed https://copperfox.lilylabs.app 2m agoCheck that it worked
Open the address of the app, for example https://copperfox.lilylabs.app. In the terminal, lly ls lists your projects and apps, and lly open opens the project in the console.
If it does not work
| What you see | Cause | Fix |
|---|---|---|
lly deploy stops and asks you to connect GitHub | No GitHub connection | Follow the link it prints, connect GitHub, run lly deploy again. See GitHub is not connected. |
| Your app is not in the list, or is marked unsupported | The framework is not supported yet, for example Python or Go | See Supported frameworks and No app was detected |
lly deploy warns about unpushed commits | LILY builds from GitHub | Push, then run lly deploy again. See My latest commit was not deployed. |
lly deploy exits with code 7 | The build or rollout failed | Run lly attach --build <slug> to read the build log. See The build failed |
More messages and their fixes: Troubleshooting.
Use an agent
Deploy this project to LILY with the lly CLI.
Read https://docs.lilylabs.io/llms.mdx/get-started/agents first and follow the deploy prompt on that page.