Introduction
lbin-cli is designed to work exclusively with the file hosting service provided through https://bin.liminal.cafe, which is a pastebin built by us.
This is essentially an expanded version of lbin-cli -h that doubles as an online reference.
Compile
git clone https://git.liminal.cafe/sakura/lbin-cli.git
cd lbin-cli
cargo build --release
Contact
sakura - mail.liminal@pm.me
Examples
File
- This hosts the file for 6 hours.
lbin-cli -f /path/to/file
Command-Line Input
- Good if you just need to do a quick paste from the terminal and can’t be bothered to package it into a file. This command essentially does that for you!
lbin-cli -i This text will be available in an uploaded .txt file to read.
Expiry
- This hosts the file for 5 minutes.
lbin-cli -f /path/to/file -t 5
- This hosts the file for 2 hours.
lbin-cli -i "Hello there." -t 120
One-shot
- This deletes the file once visited.
lbin-cli -o -f /path/to/file
lbin-cli -o -i "Hello there."
Authorization
In order to use this service, you will need to set the -l flag along with the token you should have been provided. There are two ways to do this.
Use as flag
You will need -l <token> as part of your command for every command.
lbin-cli -l <token> -F ./path/to/file
Set in command line
Or, you can set the following in your terminal or .rc file and not have to use the -l flag as part of the command.
export LBIN_AUTH=<token>
Options
Usage: lbin-cli -l <LBIN_AUTH> [OPTIONS] <INPUT>...
Arguments:
<INPUT>... INPUT
| Option | Description |
|---|---|
| -l, - -lbin-auth [LBIN_AUTH] | Not required if you export LBIN_AUTH=<token> |
| -f, - -file | Upload a file |
| -i, - -std-input | Command-line input to upload |
| -t, - -time [TIME] | How many minutes until file expires |
| -o, –oneshot | Upload a file that can only be seen once |
| -h, - -help | Print help |
| -V, - -version | Print version |