Skip to content
Daemon client and cli tool for IIJ Legs service.
Branch: master
Clone or download
Latest commit bd7dd86 Jul 16, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd first commit Jul 4, 2019
config bugfix/create config file dir to home dir (#8) Jul 16, 2019
daemon bugfix/create config file dir to home dir (#8) Jul 16, 2019
.gitignore support armv7 Jul 5, 2019
.goreleaser.yml fix CI Jul 16, 2019
Dockerfile add Dockerfile for build Jul 4, 2019
LICENSE Create LICENSE Jul 4, 2019
Makefile run 'goimports -d' when running 'make test' Jul 8, 2019
go.mod first commit Jul 4, 2019
go.sum update go.sum Jul 8, 2019
main.go first commit Jul 4, 2019



legs-client provides the cli command tool and client daemon for legs product.

Legs service document =>


Please execute below command. downloads client tool to current directory.

$ curl --silent | sh

After installation, you can show version info by version command.

$ ./legsc version

And if you need, copy tool binary to /usr/local/bin

$ sudo cp ./legsc /usr/local/bin/legsc

Basic Usage

# show help
$ ./legsc

# set secret key
$ ./legsc secret <your secret key>

# export config file with all current/default values
$ ./legsc export

# specify config file path
$ ./legsc -c path/to/config.yml secret <your secret key>

# start client in foreground
$ ./legsc start -f

# start client in background
$ ./legsc start

# stop client
$ ./legsc stop

# send data to server
$ ./legsc send routing/name '{"value": 1}'


# get go libraries which use in project.
$ make setup

# dep ensure
$ make dep

# start daemon with localconfig and tail log file.
$ make run

# stop daemon
$ make stop

# format by goimports
$ make fmt
You can’t perform that action at this time.