Skip to content

CLI for LocalSend implemented in Go

License

Notifications You must be signed in to change notification settings

ilius/localsend-go

 
 

Repository files navigation

LocalSend CLI

Installation

You can download executable files from the Releases.

Prerequisites

  • Go 1.22 or higher

Clone the Repository

git clone https://github.com/ilius/localsend-go.git
cd localsend-go

Build

Use the Makefile to build the program.

make build

This will generate binary files for all supported platforms and save them in the bin directory.

Usage

Run the Program

Receive Mode

./localsend-go -mode receive

Choose the appropriate binary file for your operating system and architecture. On Linux, you need to execute this command to enable its ping functionality: sudo setcap cap_net_raw=+ep localsend-go

Send Mode

./localsend-go -mode send -file FILE_PATH -to your_ip

Example:

./localsend-go -mode send -file ./hello.tar.gz -to 192.168.3.199

Contribution

You are welcome to submit issues and pull requests to help improve this project.

License

MIT

Todo

  • Improve send functionality to display sent text directly on the device

About

CLI for LocalSend implemented in Go

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.4%
  • Other 1.6%