## Documentation Index

Fetch the complete documentation index at: [/docs/llms.txt](/content/docs/llms.txt)

Use this file to discover all available pages before exploring further.

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 [`qa send`](/content/docs/cli-reference/mo/commands/send/index.html).

```
qa upload <source> [destination] --session-id <session-id>
```

## Arguments

<source>

string

required

Path of a local file. Directories are not supported.

[destination]

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

--session-id

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:

```
/home/user/accounts.csv
```

## Examples

Upload test accounts and tell Mo to use them:

```
remote=$(qa upload ./fixtures/accounts.csv accounts.csv --session-id "$session_id")
qa send --session-id "$session_id" "Use the accounts in $remote to test login for each role."
```

## Notes

- 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.
