Discover a device and deploy your first app

Make one visible change on a selected device and verify that it is running.

Guided walkthrough·Beginner·4 min read
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.

Rendering diagram…
What wendy run does. The build happens on your computer; the Agent on the device receives and runs the app.

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 info

Choose 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 run

Keep 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 run

Refresh 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.

Checkpoint 1 of 2

You change the message in src/index.ts, redeploy with wendy run, and the build and upload finish without errors. Which observation proves the device is serving your new code?

Commit to an answer. Every choice explains itself.

Inspect and stop

In a second terminal:

wendy device apps list
wendy device logs --app YOUR_APP

Replace 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 list

Confirm the app is no longer running.

Checkpoint 2 of 2

You press Ctrl+C in the terminal running wendy run. Which check confirms the app is no longer running on the device?

Commit to an answer. Every choice explains itself.

Troubleshooting

SymptomCheck
No devicePower, Agent, and network reachability
Build failsFirst build error, Docker, dependency downloads
App exitsApplication logs
Old responseSaved file, selected device, latest printed URL
URL failsServer 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.

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

Build & deploy
All lessons in this topic
  1. 1. Discover a device and deploy your first app
  2. 2. Build with a Dockerfile or an optional Stagefile
  3. 3. Give an app hardware access and persistent storage
  4. 4. Split a robot application into services
  5. 5. Find a failure and prove recovery

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.