A command-line client for filebin.net - a simple, temporary file sharing service.
Install
·
Usage
·
License
·
Contributing
·
Blog
Warning
filebin-cli is not affiliated with filebin.net
What you upload or do with this tool is entirely your responsibility. You must comply with filebin.net's Terms of Service
Check the releases page.
# download the source code
git clone https://github.com/kavin81/filebin-cli.git
cd filebin-cli
# build the binary
go build -o filebin
mv filebin /usr/local/bin/
# cleanup
cd ..
rm -rf filebin-cli# Upload a file to a bin
filebin push my-bin document.pdf
# Download files from a bin
filebin pull my-bin
# Show bin information
filebin show my-bin
# Delete a bin
filebin delete my-binUsage:
filebin [command]
Available Commands:
delete Remove bin or file from bin
lock Lock bin to prevent uploads
pull Download bin or file from bin
push Upload file to bin
show Show information about bin
help Help about any command
Global Flags:
-h, --help help for filebin
--icons Set icon display mode (experimental)
--json Enable JSON output
-v, --verbose Enable verbose output
Use "filebin [command] --help" for more information about a command.
Upload files to a filebin for sharing. If the bin doesn't exist, it will be created automatically.
# Basic upload
filebin push team-docs presentation.pptx
filebin push temp-share ./archive.zip
# Upload with custom filename
filebin push public-files image.jpg --filename "hero-image.jpg"| Flag | Description |
|---|---|
--client-id |
Custom client identifier |
--filename |
Custom filename for the uploaded file |
Aliases: upload, put
Download files from a filebin. Downloads entire bin as archive if no file is specified.
# Download entire bin as archive
filebin pull team-docs
# Download specific file
filebin pull temp-share/archive.zip
filebin pull public-files presentation.pptx
# Download to specific directory
filebin pull team-docs --output ./downloads| Flag | Description | Default |
|---|---|---|
-o, --output |
Output directory | Current directory |
Aliases: get, fetch
Display detailed information about a bin including files, metadata, file sizes, upload dates, and bin status.
# Show bin information
filebin show team-docs
filebin show temp-share
# Show as JSON
filebin show public-files --jsonAliases: info
Remove a bin or specific file from a filebin. The bin will be permanently deleted if no file is specified.
# Delete entire bin
filebin delete team-docs
# Delete specific file from bin
filebin delete temp-share/archive.zip
filebin delete public-files presentation.pptxAliases: remove, del, rm
Lock a bin to prevent further file uploads. This action is irreversible once applied.
# Lock a bin
filebin lock team-docs
filebin lock temp-share| Flag | Description |
|---|---|
-h, --help |
Show help information |
--icons |
Set icon display mode (experimental) |
--json |
Enable JSON output |
-v, --verbose |
Enable verbose output |
- This project is licensed under the MIT License - see the LICENSE file for details.
contributors are welcome! Contributions of all sizes are appreciated
- Open an issue.
- Package it for your favorite distribution or package manager
- Share it with a friend!
- Open a pull request