Requires the installation of Node JS. Once installed open your terminal and run:
npm install -g grunt h5gs
The h5gs CLI has the following commands:
h5gs create sitename # Create a new h5gs directory/site at "sitename".
h5gs serve [port] # Serves a h5gs site locally on the optional port. Default port is 2002.
h5gs deploy # Packages local, deploys to the live server, and runs a new build.
h5gs update # Updates the site directory you're in to use the latest h5gs runserver code libraries.
# h5gs init creates the secret key file for a local site that doesn't have one (say a github clone).
# init must be run in an existing h5gs directory.
h5gs init
The following grunt commands are supported.
grunt clean # Deletes the files in the .build/ directory.
grunt scaffolding:typename # Generates scaffolding HTML for a passed content-type from the CMS.
grunt build # Runs clean, and then rebuilds the .build/ directory.