---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# airshare

> Transfer data between two machines in a local network.
> More information: <https://airshare.readthedocs.io/en/latest/cli.html>.

- Share files or directories:

`airshare {{code}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`

- Receive a file:

`airshare {{code}}`

- Host a receiving server (use this to be able to upload files using the web interface):

`airshare --upload {{code}}`

- Send files or directories to a receiving server:

`airshare --upload {{code}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`

- Send files whose paths have been copied to the clipboard:

`airshare --file-path {{code}}`

- Receive a file and copy it to the clipboard:

`airshare --clip-receive {{code}}`
