Use when a logiccloud project should run on a device or already runs on one - deploying a build, starting, stopping or restarting a runtime, finding runtimes and their state, checking a device's health or logs, reading or writing live variable values, or maintenance actions (reset retained values, restart a device process, log level, uninstall the runtime), and cloud vPLCs. Covers both the lc CLI and the logiccloud MCP server (logiccloud-control).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Logiccloud Devices?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/logiccloudag-logiccloud-devices)
---
name: logiccloud-devices
description: Use when a logiccloud project should run on a device or already runs on one - deploying a build, starting, stopping or restarting a runtime, finding runtimes and their state, checking a device's health or logs, reading or writing live variable values, or maintenance actions (reset retained values, restart a device process, log level, uninstall the runtime), and cloud vPLCs. Covers both the lc CLI and the logiccloud MCP server (logiccloud-control).
---
# logiccloud devices and runtimes
Everything here changes what runs on real machines or reads from them.
Deploy, start, stop, restart, write values, run device actions and delete
only when the user asked for it. Reading (health, logs, values, listing) is
always fine.
Use the `lc` CLI or the MCP server `logiccloud-control`, whichever is there
(see the logiccloud skill). Connections are in the logiccloud-connections
skill, alarms in logiccloud-alarms.
## Find the device and runtime
| Task | lc | MCP tool |
|---|---|---|
| Devices (`-project <id>`: those running it) | `lc devices` | `list_devices` (`projectId`) |
| One device and its runtime | `lc device <id>` | `get_device` |
| Runtimes with their device and state | `lc runtimes -project <id> -status started` (`-platform`, `-tag`) | `list_runtimes` (`states`, `platforms`, `tags`) |
| One runtime: build, state on the device, whether its build is installed, a newer build, connections, HMI link | `lc runtime <id>` | `get_runtime` |
The runtime's state is the one on its device (`state`, `notStartedReason`).
A plcHmi project's HMI is in `hmi` of `get_runtime`, `get_device`, `deploy`
and `device_health`: `hmi.url` on a cloud vPLC (the portal serves it), or
`hmi.path` relative to an edge device's own web UI, reachable only in that
device's network. `hmi.available` is false until the runtime is started.
## Platforms
A build runs only on the platforms it was built for, and `lc deploy` /
`deploy` refuses a build without the device's exact platform (`lc devices`
shows it): `Amd64` for cloud vPLCs (the `lc init` default), `x86_64` for
edge PCs (Generic X86/64, Windows, industrial PCs), `Arm64` (Raspberry Pi,
RevPi, most gateways), `Arm/V7`. Build for others with
`lc build -platform x86_64` (several: `-platform Amd64,Arm64`;
`build` with `platforms`).
## Edge devices
`lc` only creates cloud vPLCs. A physical device is added in the portal
("bind device" gives a device token) and set up on the device by the user:
most types run the logiccloud control container (`logiccloud/logiccloud-control`
on Docker Hub, Docker or Podman, a volume on `/app/storage`, the device web
UI on port 8080, where the token is entered). Afterwards `lc devices` shows
it with a `LAST SEEN` time. Serial ports (Modbus RTU) must be passed into
the container when it is installed. A runtime without a license runs in
demo mode and stops after two hours; the key is assigned in the portal and
the device's license service activates it.
Device types with their own setup, license or I/O have a skill:
logiccloud-device-vplc (cloud vPLCs), -kubernetes (Kubernetes vPLC),
-ctrlx (Bosch Rexroth ctrlX CORE), -plcnext (Phoenix Contact PLCnext),
-wago (WAGO CC100), -weidmueller (Weidmüller u-control), -insys-mrx (INSYS
icom MRX), -perimica (Perinet periMICA). Raspberry Pi GPIO and Revolution
Pi I/O are in logiccloud-connection-raspberry-pi and -revpi. All other
devices are plain Docker hosts: use the network connections.
## Deploy and run
| Task | lc | MCP tool |
|---|---|---|
| Install or update, then start | `lc deploy -device <id>` (in the workspace) | `deploy` |
| Stop, start | `lc stop -device <id>`, `lc start -device <id>` | `stop_runtime`, `start_runtime` |
| Restart on the latest build | `lc runtime restart <runtimeId>` | `restart_runtime` |
| Cancel a running build | `lc build cancel <id>` | `cancel_build` |
A deploy uses the latest successful build (build first: the logiccloud skill)
and waits for the device's result. It also creates the runtime when the
device has none for the project. Create and change runtimes only with
`deploy`, never with raw `createRuntime` or `updateRuntime` mutations: a
runtime names the configuration and resource it starts, and a wrong name
builds fine but the runtime does not start ("configuration '...' not
found"). The configuration is the file `configuration/<Name>.json` (its
`<Name>`), the resource is a `resources[].name` in it. A program
configuration (`programs[].name`) is never a runtime's configuration. Never pass `-replace` to `lc deploy`
(`replace` to `deploy`) unless the user said so: it replaces another
project's runtime on the device. If every device runs another project and the
user wants a new one, create a cloud vPLC:
| Task | lc | MCP tool |
|---|---|---|
| Sizes | `lc device types` | `device_types` |
| Create one, wait until it is ready | `lc device create -name "<Name>"` (`-type S1`) | `create_vplc` |
| Delete it when no longer needed | `lc device delete <id> -name "<Name>"` | `delete_device` |
A vPLC on a demo license stops after two hours (the runtime log and the
health check say when).
## When something does not work
| Task | lc | MCP tool |
|---|---|---|
| Runtime state, why it is not started, installed build, processes and what the device installs | `lc health -device <id>` | `device_health` |
| The runtime's log | `lc logs -device <id> -level warn` | `device_logs` (`level: "warn"`) |
| Another process's log | `lc logs -device <id> -target <process>` | `device_logs` (`target`) |
The health check lists the processes (log targets). A runtime that is not
started usually says why (`notStartedReason`), and the log says the rest.
A runtime that restarts in a loop can still show the state `started`: read
the runtime log (or `crashLoop` and `lastPanic` in the health check) before
you report a deploy as successful. Two
messages are normal on healthy runtimes: "Metrics unavailable" in the health
check, and a "broken pipe" error in the runtime log when the HMI connects.
## Live values
The runtime must be started, and the device must run the optional device
process `debugging-service` (as for debugging in the portal). New devices do not
have it; `lc vars` / `read_variables` then say so at once. With the user's
consent, assign it with `lc device enable-process <id> -target debugging-service`
or `device_action` `enableProcess`; the device needs about a minute to start it.
Variables are named as the device reports them.
| Task | lc | MCP tool |
|---|---|---|
| Read all, or some by name | `lc vars -device <id> [name...]` | `read_variables` (`names`) |
| Write one (then read back) | `lc write -device <id> <variable> <value>` | `write_variable` |
Writing changes a running machine: only with the variable and value the user
named. `lc write` takes the value as JSON (`true`, `12`, `1.5`, `"text"`).
## Device actions
| Task | lc | MCP tool (`device_action`) |
|---|---|---|
| Reset the runtime's retained values | `lc device reset-retained <id>` | `resetRetainedValues` |
| Restart a device process | `lc device restart-process <id> -target <process>` | `restartProcess` (`target`) |
| Show or set a log level | `lc device log-level <id> [-target <process>] [-set Debug]` | `getLogLevel`, `setLogLevel` (`logLevel`) |
| Uninstall the runtime (stop it first) | `lc device uninstall <id>` | `uninstall` |
All but reading the log level change the device: only when the user asked.
Never force an uninstall of a started runtime (`-force`, `force`) unless the
user said so. The device must allow remote control.