README
Geoserver Config
This utility is used for saving geoserver configurations to disk and then being able to apply or send these configurations to the same or different geoserver.
Dependencies
NodeJS ( > 6.0.0)
Windows install https://nodejs.org/dist/v6.2.1/node-v6.2.1-x64.msi
Install
#!bash
npm install -g geoserver-config
Usage
#!bash
$ gs-conf --help
Usage: index [options] [command]
Commands:
push [options] [host] Writes the stored configurations in the working directory to the specified geoserver host. The host defaults to http://localhost:8080/
pull [options] [host] Copies the geoserver configurations from the specified host to the local working directory. The host defaults to http://localhost:8080/
Options:
-h, --help output usage information
-V, --version output the version number
-W, --dir <path> change the working directory
Pull
#!bash
$ gs-conf pull --help
Usage: pull [options] [host]
Copies the geoserver configurations from the specified host to the local working directory. The host defaults to http://localhost:8080/
Options:
-h, --help output usage information
-u, --user [username] The geoserver username for authentication. Default to `admin`
-p, --pass [password] The geoserver password for authentication. Defaults to `geoserver`
Push
#!bash
$ gs-conf push --help
Usage: push [options] [host]
Writes the stored configurations in the working directory to the specified geoserver host. The host defaults to http://localhost:8080/
Options:
-h, --help output usage information
-u, --user [username] The geoserver username for authentication. Default to `admin`
-p, --pass [password] The geoserver password for authentication. Defaults to `geoserver`
-db, --db_host [db_host] The geoserver datastore host. Default to [host]
-dbu, --db_user [db_username] The datastore username for authentication. Defaults to [username]
-dbp, --db_pass [db_password] The datastore password for authentication. Defaults to [password]