https://github.com/callensm/byte
:open_file_folder: Command line interface for sending files over secure socket connections
https://github.com/callensm/byte
byte cli file-sharing
Last synced: 11 months ago
JSON representation
:open_file_folder: Command line interface for sending files over secure socket connections
- Host: GitHub
- URL: https://github.com/callensm/byte
- Owner: callensm
- License: mit
- Created: 2018-07-27T00:37:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-26T18:26:40.000Z (over 6 years ago)
- Last Synced: 2025-02-23T11:31:44.868Z (over 1 year ago)
- Topics: byte, cli, file-sharing
- Language: Go
- Homepage:
- Size: 901 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Byte
[](https://circleci.com/gh/callensm/byte)
## Installation
You can download the `byte` binary file from the releases page for the current version and place in your `PATH`, or to install from source:
```sh
$ go get -u github.com/callensm/byte
$ cd $GOPATH/src/github.com/callensm/byte && make
```
## Usage
### *send*
```sh
byte send -a [|:] -s []
```
| Option | Alias | Description | Example |
| :----: | :---: | :---------------------------------------------------------------------------------: | :----------------------------------------: |
| --addr | -a | Set the address of the receiving socket. If no port is specified, default is `4500` | `127.0.0.1`, `127.0.0.1:3000` |
| --src | -s | Specify the relative path to the file or directory of files to be sent | `~/Desktop/myfiles/`, `~/Desktop/data.txt` |
### *receive*
```sh
byte receive -d [] -p [PORT?] -a
```
| Option | Alias | Description | Example |
| :------------: | :---: | :-------------------------------------------------------------------------------------------: | :----------------------------------------: |
| --dir | -d | Set the path to the destination directory for files to be written to | `~/Desktop/destination/` |
| --port | -p | Set the port to listen for incoming connections on. If not given, default port is `4500` | `~/Desktop/myfiles/`, `~/Desktop/data.txt` |
| --auto-approve | -a | Whether to require approval of file structure being sent. Defaults to `false` if not provided | - |
### *view*
```sh
byte view -r []
```
| Option | Alias | Description | Example |
| :----: | :---: | :--------------------------------------------------: | :----------------------: |
| --root | -r | Set the path to the root directory for the file tree | `~/Desktop/destination/` |
## License
[MIT](./LICENSE)