Run a command remotely

Updated Dec 26, 2025

Use mriya run -- <command> to provision a VM, sync the working tree, and run the provided command over SSH. Output streams live to the local terminal using the system ssh client and the configured rsync binary. The CLI exits with the remote command's status code; when the remote process terminates without a status (for example, due to a signal), Mriya exits with code 1 and reports the missing status.

To override the Scaleway instance type or image for a single run, pass --instance-type and/or --image:

mriya run --instance-type DEV1-M --image "Ubuntu 24.04 Noble Numbat" -- cargo test

The Scaleway backend validates that the instance type exists in the selected zone during provisioning, and resolves image labels for the selected architecture. Unsupported values yield provider-specific errors (for example, unknown instance types).