Skip to content

πŸ“ Share files with friends from your terminal.

Notifications You must be signed in to change notification settings

healeycodes/file-share-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‚ file-share-cli

My blog post: A Personal File Share CLI


A quick way to share public files with friends.

I built this to get around Discord's file size limit.

Visiting the home path / returns a copy-able shell function with a dynamic URL like this:

# if you are me, copy this to your ~/.bashrc
# and use it like this: share somefile.txt
# and a download link will be echoed
# (don't forget to replace user/pass)
function share () {
	curl -u user:pass -F "file=@$1" https://my-url-at.railway.app/upload
}

You can then upload files from your terminal and get a download link.

Note: dragging files into the terminal on macOS pastes the file's path!

Dev

Start the server.

AUTH_USERNAME=a AUTH_PASSWORD=b go run .

Visit localhost:4000 and copy the bash snippet.

Deploy

Deployable via Railway.

Set environmental variables AUTH_USERNAME and AUTH_PASSWORD.

About

πŸ“ Share files with friends from your terminal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages