Skip to main content
Pull artifacts out of a session: recordings, logs, HAR files, or anything else Mo wrote to disk on its machine. Ask Mo for the path in the session, then download it.

Arguments

string
required
Path of the file on the session machine.

Options

string
required
The session machine to copy from.
string
Where to save the file. If the path is an existing directory, the file keeps its original name inside it. Otherwise the CLI uses the path as the file name and creates any missing parent directories.When omitted, the CLI saves the file under MOMENTIC_ARTIFACTS_DIR if that variable is set, or under <cwd>/.momentic-artifacts.

Output

On success the command prints the local path it wrote and nothing else, so you can capture it in a script:
The CLI writes to a temporary name first and renames the file into place, so a failed download never leaves a partial file behind.

Examples

Save a recording next to your test results:
Collect every artifact from a CI run into one folder:

Notes

  • The session machine must still exist. Download before you mo archive the session.
  • download copies a single file. To fetch a directory, ask Mo to zip it first.