systemd on Linux and the Windows service manager on Windows.
The Miru CLI is only for managing Miru resources from your development machine’s terminal. Please do not attempt to use the miru command to manage the agent.
Version
To check the version of the agent, run the following command on the device:- Linux
- Windows
Logs
- Linux
- Windows
The Miru Agent logs are accessible via Tail in real-timeTail the logs and watch new entries as they appear.Recent logsView only the most recent log entries (e.g., the last 100 lines).Filter by timeView logs from a specific time period.Filter by priorityView only logs of a specific priority level (e.g., errors).
journalctl, the standard tool for viewing systemd service logs.View allBy default, journalctl truncates each line’s output to the size of the terminal window. We recommend using the --no-pager flag to view the full log output for each line.Service management
- Linux
- Windows
The Miru Agent runs as a
systemd service named miru, allowing you to manage the service using standard systemctl commands.You can find the agent’s systemd service files on your file system at the following paths:/lib/systemd/system/miru.service/lib/systemd/system/miru.socket
Status
- Linux
- Windows
To check the status of the agent, use the The service is
status command.active (running) when the agent is running as expected and inactive (dead) when it is not running.Restart
Restarting the agent stops and starts the agent, giving it a fresh start. If you’re experiencing unexpected behavior, restarting the agent is a good place to begin.- Linux
- Windows
If the agent is not running, restarting it will start it.
Stop
stop stops the agent while leaving its state intact. Stopping the agent does not disable the agent—it will still automatically start on next system boot.
Note that stopping the agent will prevent any new deployments from reaching the device until the agent is started again.
- Linux
- Windows
If the agent is not running, stopping it does nothing.
Start
start starts the agent if it has been stopped.
- Linux
- Windows
If the agent is already running, starting it does nothing.
Disable
Disabling the agent prevents it from starting automatically on boot. This does not immediately stop the agent—it will still run if it is currently running. However, it will not be able to start on next system boot.- Linux
- Windows
Enable
Enabling the agent allows it to start automatically on boot. This is the default behavior after installation and only needs to be done if the agent has been disabled. Enabling the agent will not immediately start it—it will still need to be started manually.- Linux
- Windows
Provisioning status
To check whether the machine is provisioned, runprovision --check.
- Linux
- Windows
0 if the machine is provisioned, 3 if it is not provisioned, and 1 on error.
