###OS X:
Download and run the OS X installer .
###Ubuntu:
Run this from your terminal
wget -O- http://apt.codepicnic.com/codepicnic-cli-ubuntu.sh | sh
Get your credentials (Client ID / Client Secret) from CodeGround.xyz
Run this from your terminal
codepicnic
Then inside the repl type 'configure':
CodePicnic> configure
Run this from your terminal
codepicnic configure
All command run in CLI or REPL Mode. If you don't enter parameters, the program will ask for them.
- clear: clear screen
- configure: save configuration
- connect: connect to a console
- copy: copy a file from/to a console
- create: create and start a new console
- exit: exit the REPL
- help: Shows a list of commands or help for one command
- list: list consoles
- mount: mount /app filesystem from a container
- restart: restart a console
- start: start a console
- stop: stop a console
- unmount: unmount /app filesystem from a container
Clone the repository and export GOPATH
Download all dependencies
go get ./...
Build the binary:
export GOPATH=/home/hdanniel/codepicnic/cli (linux/mac)
export GOPATH=C:\Users\hector\codepicnic\codepicnic-cli (windows)
go build -o codeground -ldflags "-X main.version=0.1 -X main.site=https://codeground.xyz -X main.swarm_host=tcp://mw.codeground.xyz:4430" github.com/codepicnic/codepicnic-cli/