Skip to main content
Give Mo a file to work with: test data, a CSV of accounts, a spec, a build artifact. The command copies the file to the session machine and prints its path there. Pass that path to Mo in your next mo send.

Arguments

string
required
Path of a local file. Directories are not supported.
string
File name to use on the session machine. The CLI places the file in the session user’s home directory and replaces characters other than letters, digits, ., _, and - with _, so a nested path becomes a single name. When omitted, the CLI stores the file as a session attachment under a generated path.

Options

string
required
The session machine to copy to.

Output

On success the command prints the absolute path of the file on the session machine and nothing else:

Examples

Upload test accounts and tell Mo to use them:

Notes

  • Always tell Mo the printed path. Uploading a file does not notify Mo by itself.
  • The session machine must exist. Uploads to an archived session fail.