Skip to main content
Write a deployment’s config files onto the local file system. To clone the config files of a device’s current deployment, use miru device clone.

API key scopes

If cloning from a CI pipeline, the following API key scopes are required:
  • devices:read
  • deployments:read
  • config_instances:read
  • releases:read

Usage

By default, cloning a deployment writes the config files to the current directory.
Use sudo miru ... to write config files to restricted paths.
Arguments
string
required
Full deployment id (dpl_…). The dashboard short id (DPL-7xKqW) is not accepted.Examples: dpl_7xKqW1mZ3nBvTgL5cRs9dYuP
Flags
string
Directory to write the cloned config files under. Defaults to the current directory.Each file is written at its device path relative to this directory, so /srv/miru/configs/mobility.json lands at {--root}/srv/miru/configs/mobility.json. Pass / to write at the computer’s root.Examples: ./robot-42-fs, /
boolean
Overwrite files that already exist at the destination. Without --force, an existing file throws an error and is left untouched.

Examples

Last modified on August 28, 2026