A command line tool for SafeU (https://safeu.a2os.club).
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 🎉
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"
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
.
$ safeu upload filename
$ safeu upload filename1 filename2 filename3
Ref to Full deteail of upload command.
Examples for this section will be supplemented lately.
$ 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
$ safeu get your_recode
$ 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
# build binary for your OS
# need go version > 1.13
make build
# build binary for Linux
make linux-build
This project is open-sourced by Apache 2.0.