surgecli
third party surge.sh cli written in golang
currently, .surgeignore
file is not fully supported
usage
surgecli login <username> <password> # skip this if you have already logged in
# deploy one site
surgecli upload ./dist mydomain.example.net
# list my sites
surgecli list
# delete one site
surgecli teardown mydomain.example.net
USAGE:
surgecli [global options] command [command options] [arguments...]
COMMANDS:
account Show account information
fetch-token Fetch token by email and password, but do not save the token like login command
list List my sites
login Login (or create new account) to surge.sh
logout Logout from surge.sh
teardown Delete site from surge.sh
upload, deploy Upload a directory (a.k.a. deploy a project) to surge.sh
whoami Show my email
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--debug toggle debug on (default: false)
--api value configure the API host (default: "https://surge.surge.sh")
--help, -h show help
build
git clone https://github.com/YieldRay/surgecli.git
cd surgecli
go build surgecli.go
# build for linux
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build surgecli.go