https://github.com/chyok/st
Simple LAN file transfer command line tool.
https://github.com/chyok/st
command-line command-line-tool file-transfer go go-cli golang
Last synced: 4 months ago
JSON representation
Simple LAN file transfer command line tool.
- Host: GitHub
- URL: https://github.com/chyok/st
- Owner: chyok
- License: mit
- Created: 2023-09-12T15:52:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-14T05:12:26.000Z (over 1 year ago)
- Last Synced: 2025-08-03T05:43:57.193Z (7 months ago)
- Topics: command-line, command-line-tool, file-transfer, go, go-cli, golang
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Transfer


`st` is a command-line file transfer tool for local networks. It has a built-in LAN discovery feature, allowing easy file sharing between devices.

## Simple Usage
1. **Receive Files**: - Run `st` to start the file reception service and display a QR code. - Another device can scan the QR code or access the displayed service address to upload files.
2. **Send Files**: - Run `st [filename|foldername]` to start the file sending service and display a QR code. - Another device can scan the QR code or access the displayed service address to download the file.
3. **Automatic discovery**: If both devices have `st` running:
Device A: `st`
Device B: `st xxx.txt` send file to A
------
Device A: `st xxx.txt`
Device B: `st` receive file from A
## Features
`st` offers a convenient and quick method for file transfer within a local network.
- Web-based file transfer interface.
- QR code for more convenient transfer between mobile phone and pc.
- Support for transferring both files and folders.
- Automatic discovery of hosts within a local network.
## Installation
### Binaries on macOS, Linux, Windows
Download from [Github Releases](https://github.com/chyok/st/releases), add st to your $PATH.
### Build from Source
```
go install github.com/chyok/st@latest
```
## Command
`st`
start a receive server and display a QR code., waiting for upload.
`st [filename|foldername]`
start a send server and display a QR code., waiting for download.
`st -p [port]`
manually specify the service port and multicast port, the default is 53333.
## License
MIT. See [LICENSE](https://github.com/chyok/st/blob/main/LICENSE).