Skip to content

NUAA-Open-Source/safeu-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SafeU CLI

Install Go

A command line tool for SafeU (https://safeu.a2os.club).

Install

If you are in China mainland, the install methods in China mainland optimized is a better choice.

NOTICE: The following methods would download a pre-compiled safeu-cli binary file which is ONLY for 64-bit Linux. If you are using a different architecture or OS, just check the Compile section below to build your own binary package.

safeu-cli is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl or wget.

via curl:

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/NUAA-Open-Source/safeu-cli/master/install.sh)"

via wget:

$ sh -c "$(wget -qO- https://raw.githubusercontent.com/NUAA-Open-Source/safeu-cli/master/install.sh)"

Congratulations, you have successfully installed the safeu-cli tool 🎉

Install safeu-cli just for current user

via curl:

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/NUAA-Open-Source/safeu-cli/master/install.sh) --local"

via wget:

$ sh -c "$(wget -qO- https://raw.githubusercontent.com/NUAA-Open-Source/safeu-cli/master/install.sh) --local"

China mainland optimized

via curl:

$ sh -c "$(curl -fsSL https://gitee.com/A2OS/safeu-cli/raw/master/install.sh) --cn"

via wget:

$ sh -c "$(wget -qO- https://gitee.com/A2OS/safeu-cli/raw/master/install.sh) --cn"

If you want to install safeu-cli locally by using the china mainland optimized script, just add --local option after the --cn.

Usage

Upload

Upload one file

$ safeu upload filename

Upload more than one file

$ safeu upload filename1 filename2 filename3

Set Password / Download Count / Expired Time

Ref to Full deteail of upload command.

Examples for this section will be supplemented lately.

Full detail of upload command

$ safeu upload --help          
Send and Share file by this command.
SafeU is responsible for ensuring upload speed and file safety

Usage:
  safeu upload [flags]

Flags:
  -d, --downcount int     specific down count
  -e, --expiretime int    specific expire time
  -p, --password string   specific password
  -r, --recode string     specific recode
  -h, --help              help for upload

Download

$ safeu get your_recode

Full detail of get command

$ safeu get --help   
Download file(s) by this command.
SafeU is responsible for ensuring download speed and file safety :)

Usage:
  safeu get [flags]

Flags:
  -d, --dir string        download to specific directory
  -p, --password string   specific password
      --print             print the file URL directly, then you can 
                          download the file by other download tools 
                          (e.g. wget, aria2).
  -h, --help              help for get

Demo

asciicast

Compile

# build binary for your OS 
# need go version > 1.13
make build

# build binary for Linux
make linux-build

Known issues

License

This project is open-sourced by Apache 2.0.