Skip to content

sapicd/cli

Repository files navigation

sapicli

The command line upload tool of sapicd/sapic, written in go language, supports Windows/macOS/Linux.

English | 中文

Install

Docker

Download the image from Docker Hub

docker pull staugur/sapicli

Build from source code

git clone https://github.com/sapicd/cli sapicli && cd sapicli
docker build -t staugur/sapicli . # or: make docker

Usage

docker run --rm -ti staugur/sapicli
docker run --rm -ti staugur/sapicli -v
docker run --rm -ti staugur/sapicli -h

Windows

In github release page, select the attachment under the distribution: sapicli.{VERSION}-windows-amd64.zip, get sapicli.exe after decompression.

Linux

As above, download the sapicli.{VERSION}-linux-amd64.tar.gz format package and unzip it to get sapicli.

Or, you can also download from the command line:

version=0.5.4
wget -c https://github.com/sapicd/cli/releases/download/v${version}/sapicli.${version}-linux-amd64.tar.gz
tar zxf sapicli.${version}-linux-amd64.tar.gz
mv sapicli ~/bin/
sapicli -v

macOS

As above, download the sapicli.{VERSION}-darwin-amd64.tar.gz format package and unzip it to get sapicli, or with command line(Refer to Linux).

In addition to these two methods, you can use homebrew to install directly.

I've made Tap, On macOS or homebrew supported operating systems, you can install the following:

brew tap staugur/tap
brew install sapicli

update

brew update
brew upgrade sapicli

uninstall

brew uninstall sapicli
brew untap staugur/tap

Documentation

Doc to sapic/cli