Discover a device and deploy your first app
Make one visible change on a selected device and verify that it is running.
Requirements and learning goals
Before you start
- Wendy CLI installed on your computer
- A reachable WendyOS device, Agent-equipped Linux computer, or prepared VM
You will be able to
- Select a target without relying on an ambiguous default
- Deploy and verify a small HTTP application
Wendy builds an application on your computer and deploys it to a selected device. The CLI is your local command-line tool; the Agent is the program on the target that receives and runs the app. includes the Agent. An existing Linux computer can install it separately.
This saves you from copying files and configuring each device by hand. You will deploy an HTTP server, change its response, and verify the change on the device. Local deployment needs no Cloud account.
Already have a Dockerfile? Keep it and run wendy run from that project. are optional. For apps, retain your nodes, message types, packages, and launch commands; configure the target's resources and connectivity.
Use this same loop when moving a robot app from simulation to hardware; successful deployment still needs a functional check on each target.
Prepare the target
Complete device setup and start Docker on your computer. Run:
wendy --version
wendy discover
wendy device infoChoose your target when prompted. Commands may use a configured default or the only available device; check the selected identity. Use the same device throughout. Check its identity before deploying. If discovery is empty, finish device setup first.
Deploy an app
Use a new project directory:
wendy init hello-wendy --target wendyos --language node --template simple-api --assistant skip --git-init no
cd hello-wendy
wendy runKeep the terminal open. The first build may download dependencies. Open the application URL printed by the CLI; expect {"message":"hello-world"}.
Check the expected result after an edit
In src/index.ts, change hello-world to hello-from-my-device. Save, stop the attached run with Ctrl+C, and redeploy:
wendy runRefresh the printed URL. Expect {"message":"hello-from-my-device"}. Receiving the changed response proves more than an upload-complete message: the intended server is answering with your new code.
Inspect and stop
In a second terminal:
wendy device apps list
wendy device logs --app YOUR_APPReplace YOUR_APP with the name from the list. Stop the attached run with Ctrl+C. If it remains running:
wendy device apps stop YOUR_APP
wendy device apps listConfirm the app is no longer running.
Troubleshooting
| Symptom | Check |
|---|---|
| No device | Power, Agent, and network reachability |
| Build fails | First build error, Docker, dependency downloads |
| App exits | Application logs |
| Old response | Saved file, selected device, latest printed URL |
| URL fails | Server port, bind address, network |
Keep the working commands and observed response in your README. Keep this hello-wendy project for the build and persistence lessons that follow.
Before you move on
Can you do each of these?
- Select a target without relying on an ambiguous default
- Deploy and verify a small HTTP application
0 of 2 checkpoints solved. Try checkpoint 1