dev-master
9999999-dev http://servergrove.com/ServerGrove CLI
MIT
The Requires
by Pablo Godel
cli vps servergrove
Wallogit.com
2017 © Pedro Peláez
ServerGrove CLI
The utility allows interaction with the ServerGrove Control Panel through the command line. It also provides an interactive shell., (*1)
The following command line tools are provided:, (*2)
The API client CLI allows to connect to the ServerGrove Control Panel through a HTTP API. To connect to the API you will need to be a registered customer with access to the Control Panel and API, and you will need to enable API access in the user profile., (*3)
You will need PHP 5.3, (*4)
Download sgcli.phar executable and place it in a directory in your PATH., (*5)
Make sure sgcli.phar has executable permissions or use with php sgcli.phar, (*6)
By default, the API client will use our demo API secret/key combination. This only lets you runs some tests against the server but it won't allow you to access your account and servers., (*7)
You will need to enable API access in your user profile in https://control.servergrove.com/profile, (*8)
Once you have the API key and secret, add it to your environment variables:, (*9)
Example:
$ export SG_API_KEY=yourkey
$ export SG_API_SECRET=yoursecret
./sgcli.phar client call [args]
./sgcli.phar client test/version ./sgcli.phar client server/list ./sgcli.phar client server/stop serverId=abc123
./sgcli.phar shell
Commands:, (*10)
Notice: The API is still under heavy development, so things MAY change. Please be aware of this., (*11)
We have a bunch of features we want to add. If you have any cool ideas feel free to send us suggestions or even Pull Requests. This is a Github project, so anybody can fork it and extend it!, (*12)
We love PRs!, (*13)
ServerGrove CLI
MIT
cli vps servergrove