Hello World
Use the shortest path to build your first deployable app.
1. Create project
lzc-cli project create helloworldIn the interactive prompt:
- Choose
hello-vue. - Keep the default app id
helloworld, or type your own.
After creation, you should see a message like this:
✨ Initialize project helloworld
✨ Lazycat app initialized
✨ First deploy and open the app once
cd helloworld
lzc-cli project deploy
lzc-cli project infoInside the project directory, the key files are:
lzc-manifest.yml: runtime structure and routes.package.yml: static package metadata such aspackage,version,author, andlicense.lzc-build.yml: default build config and also the release config.lzc-build.dev.yml: dev override config, usually containing a dedicated dev package ID such aspkg_id: cloud.lazycat.app.helloworld.devand build-timeenvs.
In daily development, project deploy, project info, project exec, and other project commands prefer lzc-build.dev.yml by default, so they operate on an isolated dev package instead of overwriting release. Each command prints the active Build config. Use --release when you explicitly want lzc-build.yml.
2. Deploy first, then open the app
cd helloworld
lzc-cli project deploy
lzc-cli project infoNotes:
- If the first deployment asks for authorization, open the URL printed by CLI and finish authorization in the browser.
projectcommands preferlzc-build.dev.ymlwhen it exists, and each command prints the activeBuild config.project deployruns the configuredbuildscript, so you do not need to runnpm installseparately first.project infoprintsTarget URLwhen the app is running.- Use
--releaseif you want to inspect or operate on release config. - If the app is not running yet, run:
lzc-cli project start
lzc-cli project infoThen open the app directly:
- Click the app icon from the Lazycat client launcher.
- Or open the
Target URLin your browser.
For the hello-vue template, the app page usually enters the dev-mode entry first:
- If the local frontend dev server is not started yet, the page tells you the next step directly.
- The page shows the exact local port expected by the inject script.
- You do not need to guess commands or edit manifest first.
3. Start frontend development from the page hint
After opening the app page, run:
npm run devThen refresh the app page.
From then on, changes to files such as src/App.vue are still reached through the official LPK domain, and request inject proxies traffic to your local dev server.
For troubleshooting:
lzc-cli project log -f4. Build release package
lzc-cli project release -o helloworld.lpkInstall the release package:
lzc-cli lpk install helloworld.lpkproject release always uses lzc-build.yml, without dev-only package suffix or dev-only #@build branches.