If you want to compile it from source, you will need Go 1.10 or later, and the Dep package manager installed:
- Fetch the package:
go get github.com/bbucko/cli-iec
- Change to the package directory:
cd $GOPATH/src/github.com/bbucko/cli-iec
- Install dependencies using
dep
:dep ensure
- Check if binaries build successfully:
- Linux/macOS/*nix:
go build ./...
- Install binaries (to $GOPATH/bin)
- Linux/macOS/*nix:
go install ./..
User flow:
- Generate key pair -
akamai jwt create-keys --name keys_1
- Configurate new property -
akamai iec configure --auth jwt --hostname iec.kwapiszewski.com --mqtt --ws --https --jwtKey keys_1 --activate --namespace kwapiszewski_ns --jurisdiction EU
- Subscribe -
akamai iec subscribe --namespace kwapiszewski_ns --jurisdiction EU
- Publish -
akamai iec publish --namespace kwapiszewski_ns --jurisdiction EU --message "Hello world"
- Generate token -
akamai jwt token --name keys_1 --clientId clientId --authGroup publisher