{"versions":{"1.0.0":{"name":"cordova-hot-code-push-cli","version":"1.0.0","description":"Cordova Hot Code Push CLI","preferGlobal":"true","bin":{"cordova-hcp":"bin/cordova-hcp"},"engines":{"node":">=0.10.3 <0.12"},"repository":{"type":"git","url":"git+https://github.com/nordnet/cordova-hot-code-push-cli.git"},"keywords":["cordova","nordnet","mobile","cordova-hot-code-push-plugin","ecosystem:cordova","cordova-android","cordova-ios"],"scripts":{"pretranspile":"rimraf dist","transpile":"babel src --out-dir dist --source-maps","dev":"npm run transpile -- --watch","eslint":"eslint --ext=.js -c .eslintrc src","test":"mocha"},"author":{"name":"Andreas Hassellöf for Nordnet Bank AB"},"license":"MIT","dependencies":{"async":"^1.4.0","compression":"^1.5.1","connect-inject":"^0.3.2","crypto":"0.0.3","es6-promise":"^2.3.0","express":"^4.13.1","express-handlebars":"^2.0.1","fs-extra":"^0.22.1","ios-webkit-debug-proxy":"0.0.3","lodash":"^3.10.0","ngrok":"^0.1.99","open":"0.0.5","prompt":"^0.2.14","q":"^1.4.1","random-string":"^0.1.2","recursive-readdir":"^1.2.1","replacestream":"^4.0.0","s3":"^4.4.0","socket.io":"^1.3.6","watch":"^0.16.0","weinre":"^2.0.0-pre-I0Z7U9OV","yargs":"^3.16.1"},"devDependencies":{"babel":"^5.8.19","babel-eslint":"^4.0.5","babel-jscs":"^2.0.3","chai":"^3.2.0","eslint":"^0.24.1","eslint-config-airbnb":"0.0.7","eslint-plugin-react":"^3.1.0","jscs":"^2.0.0","mocha":"^2.2.5","rimraf":"^2.4.2","sinon":"^1.15.4","sinon-chai":"^2.8.0"},"gitHead":"9a7a370029c246c1f2b429c6168f00f03e291176","bugs":{"url":"https://github.com/nordnet/cordova-hot-code-push-cli/issues"},"homepage":"https://github.com/nordnet/cordova-hot-code-push-cli#readme","_id":"cordova-hot-code-push-cli@1.0.0","_shasum":"17fc33e11ac047f0dbfcfecf25168c0bfe0ba14b","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"anonymous","email":"praetoriax@gmail.com"},"dist":{"shasum":"17fc33e11ac047f0dbfcfecf25168c0bfe0ba14b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-hot-code-push-cli/-/cordova-hot-code-push-cli-1.0.0.tgz","size":56713,"integrity":"sha512-Ca/XZ6tZxzjdnK0oB7BvPMimRMZ8ekhPpC7D1i7D8bJQ8p+NFieucRYQMssqIXyTBqhwwxepb2LAGOhetdC4nA=="},"maintainers":[{"name":"anonymous","email":"praetoriax@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:21:51.258Z","contributors":[]},"1.0.1":{"name":"cordova-hot-code-push-cli","version":"1.0.1","description":"Cordova Hot Code Push CLI","preferGlobal":"true","bin":{"cordova-hcp":"bin/cordova-hcp"},"engines":{"node":">=0.10.3 <0.12"},"repository":{"type":"git","url":"git+https://github.com/nordnet/cordova-hot-code-push-cli.git"},"keywords":["cordova","nordnet","mobile","cordova-hot-code-push-plugin","ecosystem:cordova","cordova-android","cordova-ios"],"scripts":{"pretranspile":"rimraf dist","transpile":"babel src --out-dir dist --source-maps","dev":"npm run transpile -- --watch","eslint":"eslint --ext=.js -c .eslintrc src","test":"mocha"},"author":{"name":"Andreas Hassellöf for Nordnet Bank AB"},"license":"MIT","dependencies":{"async":"^1.4.0","compression":"^1.5.1","crypto":"0.0.3","es6-promise":"^2.3.0","express":"^4.13.1","fs-extra":"^0.22.1","lodash":"^3.10.0","ngrok":"^0.1.99","prompt":"^0.2.14","q":"^1.4.1","recursive-readdir":"^1.2.1","s3":"^4.4.0","socket.io":"^1.3.6","watch":"^0.16.0","yargs":"^3.16.1"},"devDependencies":{"babel":"^5.8.19","babel-eslint":"^4.0.5","babel-jscs":"^2.0.3","chai":"^3.2.0","eslint":"^0.24.1","eslint-config-airbnb":"0.0.7","eslint-plugin-react":"^3.1.0","jscs":"^2.0.0","mocha":"^2.2.5","rimraf":"^2.4.2","sinon":"^1.15.4","sinon-chai":"^2.8.0"},"gitHead":"3bebaa3047b8666a758145d6b98a6d11544d1701","bugs":{"url":"https://github.com/nordnet/cordova-hot-code-push-cli/issues"},"homepage":"https://github.com/nordnet/cordova-hot-code-push-cli#readme","_id":"cordova-hot-code-push-cli@1.0.1","_shasum":"f621ad5cda5e73593a3a4b18af553b584d2c65b7","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"anonymous","email":"praetoriax@gmail.com"},"dist":{"shasum":"f621ad5cda5e73593a3a4b18af553b584d2c65b7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-hot-code-push-cli/-/cordova-hot-code-push-cli-1.0.1.tgz","size":56766,"integrity":"sha512-9+bKSywRlVJDSSq4EKK2TfBXr5lTjvOWz/R7SMLOBTWst7+d1xxZzNcn7WuHsAXhZEJHbMQTxY3YqV0ub8AcYw=="},"maintainers":[{"name":"anonymous","email":"andreas@ombori.com"},{"name":"anonymous","email":"praetoriax@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:21:51.975Z","contributors":[]},"1.0.2":{"name":"cordova-hot-code-push-cli","version":"1.0.2","description":"Cordova Hot Code Push CLI","preferGlobal":"true","bin":{"cordova-hcp":"bin/cordova-hcp"},"engines":{"node":">=0.10.3 <0.12"},"repository":{"type":"git","url":"git+https://github.com/nordnet/cordova-hot-code-push-cli.git"},"keywords":["cordova","nordnet","mobile","cordova-hot-code-push-plugin","ecosystem:cordova","cordova-android","cordova-ios"],"scripts":{"pretranspile":"rimraf dist","transpile":"babel src --out-dir dist --source-maps","dev":"npm run transpile -- --watch","eslint":"eslint --ext=.js -c .eslintrc src","test":"mocha"},"author":{"name":"Andreas Hassellöf for Nordnet Bank AB"},"license":"MIT","dependencies":{"async":"^1.4.0","compression":"^1.5.1","crypto":"0.0.3","es6-promise":"^2.3.0","express":"^4.13.1","fs-extra":"^0.22.1","lodash":"^3.10.0","ngrok":"^0.1.99","prompt":"^0.2.14","q":"^1.4.1","recursive-readdir":"^1.2.1","s3":"^4.4.0","socket.io":"^1.3.6","watch":"^0.16.0","yargs":"^3.16.1","minimatch":"^3.0.0","hidefile":"^1.1.0"},"devDependencies":{"babel":"^5.8.19","babel-eslint":"^4.0.5","babel-jscs":"^2.0.3","chai":"^3.2.0","eslint":"^0.24.1","eslint-config-airbnb":"0.0.7","eslint-plugin-react":"^3.1.0","jscs":"^2.0.0","mocha":"^2.2.5","rimraf":"^2.4.2","sinon":"^1.15.4","sinon-chai":"^2.8.0"},"gitHead":"08a0dec4504702113886b75530c92978b3e14a84","bugs":{"url":"https://github.com/nordnet/cordova-hot-code-push-cli/issues"},"homepage":"https://github.com/nordnet/cordova-hot-code-push-cli#readme","_id":"cordova-hot-code-push-cli@1.0.2","_shasum":"4be2b475a1c0950e92593a3ab901aa8ade38bd8f","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"anonymous","email":"praetoriax@gmail.com"},"dist":{"shasum":"4be2b475a1c0950e92593a3ab901aa8ade38bd8f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-hot-code-push-cli/-/cordova-hot-code-push-cli-1.0.2.tgz","size":54025,"integrity":"sha512-XFJP46V76czOPlVuBpMWJ3EdGGriKnn1gJlB1HN9AKvVxa3HLrqy4IWMD420PrPOGjwaEcJVc5mMzkzhuCTqPg=="},"maintainers":[{"name":"anonymous","email":"andreas@ombori.com"},{"name":"anonymous","email":"praetoriax@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:21:53.052Z","contributors":[]},"1.0.3":{"name":"cordova-hot-code-push-cli","version":"1.0.3","description":"Cordova Hot Code Push CLI","preferGlobal":"true","bin":{"cordova-hcp":"bin/cordova-hcp"},"engines":{"node":">=0.10.3 <=5.1.0"},"repository":{"type":"git","url":"git+https://github.com/nordnet/cordova-hot-code-push-cli.git"},"keywords":["cordova","nordnet","mobile","cordova-hot-code-push-plugin","ecosystem:cordova","cordova-android","cordova-ios"],"scripts":{"pretranspile":"rimraf dist","transpile":"babel src --out-dir dist --source-maps","dev":"npm run transpile -- --watch","eslint":"eslint --ext=.js -c .eslintrc src","test":"mocha"},"author":{"name":"Andreas Hassellöf for Nordnet Bank AB"},"license":"MIT","dependencies":{"async":"^1.4.0","compression":"^1.5.1","crypto":"0.0.3","es6-promise":"^2.3.0","express":"^4.13.1","fs-extra":"^0.22.1","hidefile":"^1.1.0","lodash":"^3.10.0","minimatch":"^3.0.0","ngrok":"^0.1.99","prompt":"^0.2.14","q":"^1.4.1","readdirp":"^2.0.0","recursive-readdir":"^1.2.1","s3-sync-aws":"^1.1.0","level":"~1.3.0","socket.io":"^1.3.6","watch":"^0.16.0","yargs":"^3.16.1"},"devDependencies":{"babel":"^5.8.19","babel-eslint":"^4.0.5","babel-jscs":"^2.0.3","chai":"^3.2.0","eslint":"^0.24.1","eslint-config-airbnb":"0.0.7","eslint-plugin-react":"^3.1.0","jscs":"^2.0.0","mocha":"^2.2.5","rimraf":"^2.4.2","sinon":"^1.15.4","sinon-chai":"^2.8.0"},"gitHead":"5f07f76b3af691c96b75ee888ed7d1808a4ddf75","bugs":{"url":"https://github.com/nordnet/cordova-hot-code-push-cli/issues"},"homepage":"https://github.com/nordnet/cordova-hot-code-push-cli#readme","_id":"cordova-hot-code-push-cli@1.0.3","_shasum":"a7d867407872d48f3efb3f5d998efb9730b17a97","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"anonymous","email":"praetoriax@gmail.com"},"dist":{"shasum":"a7d867407872d48f3efb3f5d998efb9730b17a97","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-hot-code-push-cli/-/cordova-hot-code-push-cli-1.0.3.tgz","size":13069,"integrity":"sha512-bEKvgmpUJX+OLXJJB68x9kr3XAERIWepu8Z3h++nCSid7bLiy//DHnVshJdk5sXhfrmKixS5qBemhE/wQIwf7w=="},"maintainers":[{"name":"anonymous","email":"andreas@ombori.com"},{"name":"anonymous","email":"praetoriax@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:21:53.922Z","contributors":[]},"1.0.4":{"name":"cordova-hot-code-push-cli","version":"1.0.4","description":"Cordova Hot Code Push CLI","preferGlobal":"true","bin":{"cordova-hcp":"bin/cordova-hcp"},"engines":{"node":">=0.10.3 <=5.1.0"},"repository":{"type":"git","url":"git+https://github.com/nordnet/cordova-hot-code-push-cli.git"},"keywords":["cordova","nordnet","mobile","cordova-hot-code-push-plugin","ecosystem:cordova","cordova-android","cordova-ios"],"scripts":{"pretranspile":"rimraf dist","transpile":"babel src --out-dir dist --source-maps","dev":"npm run transpile -- --watch","eslint":"eslint --ext=.js -c .eslintrc src","test":"mocha"},"author":{"name":"Andreas Hassellöf for Nordnet Bank AB"},"license":"MIT","dependencies":{"async":"^1.4.0","compression":"^1.5.1","crypto":"0.0.3","es6-promise":"^2.3.0","express":"^4.13.1","fs-extra":"^0.22.1","hidefile":"^1.1.0","lodash":"^3.10.0","minimatch":"^3.0.0","ngrok":"^2.1.6","prompt":"^0.2.14","q":"^1.4.1","readdirp":"^2.0.0","recursive-readdir":"^1.2.1","s3-sync-aws":"^1.1.0","level":"~1.3.0","socket.io":"^1.3.6","watch":"^0.16.0","yargs":"^3.16.1"},"devDependencies":{"babel":"^5.8.19","babel-eslint":"^4.0.5","babel-jscs":"^2.0.3","chai":"^3.2.0","eslint":"^0.24.1","eslint-config-airbnb":"0.0.7","eslint-plugin-react":"^3.1.0","jscs":"^2.0.0","mocha":"^2.2.5","rimraf":"^2.4.2","sinon":"^1.15.4","sinon-chai":"^2.8.0"},"gitHead":"7f24c6b75e0ba253da58388e31f0c6635460f845","bugs":{"url":"https://github.com/nordnet/cordova-hot-code-push-cli/issues"},"homepage":"https://github.com/nordnet/cordova-hot-code-push-cli#readme","_id":"cordova-hot-code-push-cli@1.0.4","_shasum":"eb8a197e36b54b678f55c52b323b9947daaadded","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"anonymous","email":"praetoriax@gmail.com"},"dist":{"shasum":"eb8a197e36b54b678f55c52b323b9947daaadded","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-hot-code-push-cli/-/cordova-hot-code-push-cli-1.0.4.tgz","size":13121,"integrity":"sha512-2BeIcwzayN/ByponjUUWnbOQlvJMIKreFJMSn1sZYV7gDd4vmU12hcqVuasNT47Zkeq/H+gov6Bkw1lcx3UomA=="},"maintainers":[{"name":"anonymous","email":"andreas@ombori.com"},{"name":"anonymous","email":"praetoriax@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/cordova-hot-code-push-cli-1.0.4.tgz_1458824162395_0.38364644115790725"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:21:55.408Z","contributors":[]},"1.1.0":{"name":"cordova-hot-code-push-cli","version":"1.1.0","description":"Cordova Hot Code Push CLI","preferGlobal":"true","bin":{"cordova-hcp":"bin/cordova-hcp"},"engines":{"node":">=0.10.3 <=5.1.0"},"repository":{"type":"git","url":"git+https://github.com/nordnet/cordova-hot-code-push-cli.git"},"keywords":["cordova","nordnet","mobile","cordova-hot-code-push-plugin","ecosystem:cordova","cordova-android","cordova-ios"],"scripts":{"pretranspile":"rimraf dist","transpile":"babel src --out-dir dist --source-maps","dev":"npm run transpile -- --watch","eslint":"eslint --ext=.js -c .eslintrc src","test":"mocha"},"author":{"name":"Andreas Hassellöf for Nordnet Bank AB"},"license":"MIT","dependencies":{"async":"^1.4.0","compression":"^1.5.1","crypto":"0.0.3","es6-promise":"^2.3.0","express":"^4.13.1","fs-extra":"^0.22.1","hidefile":"^1.1.0","lodash":"^3.10.0","minimatch":"^3.0.0","ngrok":"^2.1.6","prompt":"^0.2.14","q":"^1.4.1","readdirp":"^2.0.0","recursive-readdir":"^1.2.1","s3-sync-aws":"^1.1.0","level":"~1.3.0","socket.io":"^1.3.6","watch":"^0.16.0","yargs":"^3.16.1"},"devDependencies":{"babel":"^5.8.19","babel-eslint":"^4.0.5","babel-jscs":"^2.0.3","chai":"^3.2.0","eslint":"^0.24.1","eslint-config-airbnb":"0.0.7","eslint-plugin-react":"^3.1.0","jscs":"^2.0.0","mocha":"^2.2.5","rimraf":"^2.4.2","sinon":"^1.15.4","sinon-chai":"^2.8.0"},"gitHead":"0a803cc84c3584ae43391b2186d0d0f826590a51","bugs":{"url":"https://github.com/nordnet/cordova-hot-code-push-cli/issues"},"homepage":"https://github.com/nordnet/cordova-hot-code-push-cli#readme","_id":"cordova-hot-code-push-cli@1.1.0","_shasum":"80baa94d3fed2af41d8a9ae9b58043b4abbef0d5","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"anonymous","email":"praetoriax@gmail.com"},"dist":{"shasum":"80baa94d3fed2af41d8a9ae9b58043b4abbef0d5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-hot-code-push-cli/-/cordova-hot-code-push-cli-1.1.0.tgz","size":13793,"integrity":"sha512-5xOmfi88c7nE+Pdhz8fjsIPZOe3yaTA1ikRZBc32erMgZydU3+Hq0+kWxNS7dugxQXSudgTVHV8Ysp0ML4ntlQ=="},"maintainers":[{"name":"anonymous","email":"andreas@ombori.com"},{"name":"anonymous","email":"praetoriax@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cordova-hot-code-push-cli-1.1.0.tgz_1462368315185_0.9975579152815044"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:21:56.489Z","contributors":[]},"1.1.1":{"name":"cordova-hot-code-push-cli","version":"1.1.1","description":"Cordova Hot Code Push CLI","preferGlobal":"true","bin":{"cordova-hcp":"bin/cordova-hcp"},"engines":{"node":">=0.10.3 <=5.1.0"},"repository":{"type":"git","url":"git+https://github.com/nordnet/cordova-hot-code-push-cli.git"},"keywords":["cordova","nordnet","mobile","cordova-hot-code-push-plugin","ecosystem:cordova","cordova-android","cordova-ios"],"scripts":{"pretranspile":"rimraf dist","transpile":"babel src --out-dir dist --source-maps","dev":"npm run transpile -- --watch","eslint":"eslint --ext=.js -c .eslintrc src","test":"mocha"},"author":{"name":"Andreas Hassellöf for Nordnet Bank AB"},"license":"MIT","dependencies":{"async":"^1.4.0","compression":"^1.5.1","crypto":"0.0.3","es6-promise":"^2.3.0","express":"^4.13.1","fs-extra":"^0.22.1","hidefile":"^1.1.0","lodash":"^3.10.0","minimatch":"^3.0.0","ngrok":"^2.1.6","prompt":"^0.2.14","q":"^1.4.1","readdirp":"^2.0.0","recursive-readdir":"^1.2.1","s3-sync-aws":"^1.1.0","socket.io":"^1.3.6","watch":"^0.16.0","yargs":"^3.16.1"},"devDependencies":{"babel":"^5.8.19","babel-eslint":"^4.0.5","babel-jscs":"^2.0.3","chai":"^3.2.0","eslint":"^0.24.1","eslint-config-airbnb":"0.0.7","eslint-plugin-react":"^3.1.0","jscs":"^2.0.0","mocha":"^2.2.5","rimraf":"^2.4.2","sinon":"^1.15.4","sinon-chai":"^2.8.0"},"gitHead":"13a9e57fc1e315d2cfb6a8e8e1a4aa366cb28c75","bugs":{"url":"https://github.com/nordnet/cordova-hot-code-push-cli/issues"},"homepage":"https://github.com/nordnet/cordova-hot-code-push-cli#readme","_id":"cordova-hot-code-push-cli@1.1.1","_shasum":"11fb75fbbddcbc1b5ed487b525370971a916f7a4","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"anonymous","email":"praetoriax@gmail.com"},"dist":{"shasum":"11fb75fbbddcbc1b5ed487b525370971a916f7a4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-hot-code-push-cli/-/cordova-hot-code-push-cli-1.1.1.tgz","size":13802,"integrity":"sha512-oTfjwPAn26UgWZXKGsvFmGgmZ0nHlvd206FArfrgUmh3woN6JcNV/xKP5BLNcuZzCLS64JhGCrNMyalfLh9mIQ=="},"maintainers":[{"name":"anonymous","email":"andreas@ombori.com"},{"name":"anonymous","email":"praetoriax@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cordova-hot-code-push-cli-1.1.1.tgz_1462472164166_0.6534791733138263"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:21:56.583Z","contributors":[]}},"dist-tags":{"latest":"1.1.1"},"name":"cordova-hot-code-push-cli","time":{"created":"2022-01-27T01:22:47.536Z","modified":"2022-01-27T01:22:47.536Z","1.0.0":"2015-09-07T14:22:27.839Z","1.0.1":"2015-09-08T15:10:03.937Z","1.0.2":"2015-10-26T12:31:41.035Z","1.0.3":"2015-12-03T13:32:31.871Z","1.0.4":"2016-03-24T12:56:05.020Z","1.1.0":"2016-05-04T13:25:17.942Z","1.1.1":"2016-05-05T18:16:06.823Z"},"readme":"# Cordova Hot Code Push Plugin CLI client\n\nThis is a command line utility for [Cordova Hot Code Push Plugin](https://github.com/nordnet/cordova-hot-code-push). It will help you with development and deploy changes to your Cordova application via hot code push, without the need to submit your changes to the Apple App Store or Google Play.\n\nMain features are:\n- Automatically generate configuration files, required for Hot Code Push plugin (`chcp.json` and `chcp.manifest`).\n- Run local server in order to detect any changes you make in your web project and instantly upload them on the devices.\n- Deploy your web project on the external servers with the single command. For now it only supports deployment on the Amazon servers. More deployment targets will be added later.\n\n## Documentation\n\n- [Installation](#installation)\n- [How to use](#how-to-use)\n- [Commands](#commands)\n  - [Init command](#init-command)\n  - [Build command](#build-command)\n  - [Server command](#server-command)\n  - [Login command](#login-command)\n  - [Deploy command](#deploy-command)\n- [Default configuration file](#default-configuration-file)\n- [Ignored files list](#ignored-files-list)\n- [Normal workflow scheme](#normal-workflow-scheme)\n- [Local development workflow scheme](#local-development-workflow-scheme)\n\n### Installation\n\nYou can install CLI client using `npm install` (current stable 1.1.1):\n```sh\nnpm install -g cordova-hot-code-push-cli\n```\n\nIt is also possible to install via repo url directly (__unstable__):\n```sh\nnpm install -g https://github.com/nordnet/cordova-hot-code-push-cli.git\n```\n\n### How to use\n\n```sh\ncordova-hcp <command>\n```\n\nWhere `<command>` can be:\n- `init` - initialize project parameters, create default `cordova-hcp.json` file.\n- `build` - build project files, generate `chcp.json` and `chcp.manifest` files in the `www` folder. Prepare for deployment.\n- `server` - run local server that is used for local development process.\n- `login` - create login credentials that are used for deployment of project files on the remote server.\n- `deploy` - upload project files on the remote server.\n\nAll commands should be executed in the root folder of your Cordova project. For example, lets assume you have a Cordova `TestProject` with the following structure:\n```\nTestProject/\n  config.xml\n  hooks/\n  node_modules/\n  platforms/\n  plugins/\n  www/\n```\nThen `cordova-hcp` commands should be executed in the `TestProject` folder.\n\n### Commands\n\n#### Init command\n\n```sh\ncordova-hcp init\n```\n\nInitialization command for CLI client. Generates default application configuration file (`cordova-hcp.json`) in the projects root folder. This file is used later on for `build` and `deploy`.\n\nWhen executed - you will be asked to fill in some project preferences from the command line:\n- `Project name` - your current project name. **Required**.\n- `Amazon S3 Bucket name` - name of the S3 Bucket on the Amazon. **Required for deployment**, can be skipped in other cases.\n- `Amazon S3 region` - Amazon S3 region. **Required for deployment**, can be skipped in other cases.\n- `iOS app identifier` - applications id on the App Store. Used to redirect user to the applications page on the store.\n- `Android app identifier` - applications package name by which we reference app on the Google Play.\n- `Update method` - when to perform the update. Supports three keys:\n  - `start` - install updates when application is launched;\n  - `resume` - install update when application is resumed (moved from background to foreground state) or launched; **used by default**;\n  - `now` - install update as soon as it is loaded from the server.\n\nFor example, execute `init` in your project root folder and fill preferences as below:\n```\nRunning init\nPlease provide: Enter project name (required):  TestProject\nPlease provide: Amazon S3 Bucket name (required for cordova-hcp deploy):  chcp-test\nPlease provide: Amazon S3 region (required for cordova-hcp deploy):  (us-east-1) eu-west-1\nPlease provide: IOS app identifier:  id123456789\nPlease provide: Android app identifier:  com.example.chcp.testproject\nPlease provide: Update method (required):  (resume) start\nProject initialized and cordova-hcp.json file created.\nIf you wish to exclude files from being published, specify them in .chcpignore\nBefore you can push updates you need to run \"cordova-hcp login\" in project directory\n```\n\nAs a result, content of the `cordova-hcp.json` file will be:\n```json\n{\n  \"name\": \"TestProject\",\n  \"s3bucket\": \"chcp-test\",\n  \"s3region\": \"eu-west-1\",\n  \"ios_identifier\": \"id123456789\",\n  \"android_identifier\": \"com.example.chcp.testproject\",\n  \"update\": \"start\",\n  \"content_url\": \"https://s3-eu-west-1.amazonaws.com/chcp-test\"\n}\n```\n\nYou can skip initialization for local development process when you execute\n```sh\ncordova-hcp server\n```\nMore details about `server` command can be found below.\n\n#### Build command\n\n```sh\ncordova-hcp build [www_directory]\n```\n\nwhere:\n- `[www_directory]` - path to the directory with your web project. If not specified - `www` is used.\n\nCommand is used to prepare project for deployment and to generate plugin specific configuration files inside `www` folder:\n- `chcp.json` - holds release related information.\n- `chcp.manifest` - holds information about web project files: their names (relative paths) and hashes.\n\nWhen executed - you will see in the terminal window:\n```\nRunning build\nBuild 2015.09.07-11.20.55 created in /Cordova/TestProject/www\n```\n\nAs a result, `chcp.json` and `chcp.manifest` files are generated in the `www` folder and project is ready for deployment.\n\nMore information about those configs can be found on [Cordova Hot Code Push plugin](https://github.com/nordnet/cordova-hot-code-push) documentation page.\n\n#### Server command\n\n```sh\ncordova-hcp server [www_directory]\n```\n\nwhere:\n- `[www_directory]` - path to the directory with your web project. If not specified - `www` is used.\n\nCommand is used for local development purpose only. It starts local server that listens for changes inside your web folder (with respect to `.chcpignore`) and sends notification about the new release to the connected users. This way you can develop your application and see results in the real-time.\n\nYou can use `server` without running `init` at first. In that case, application configuration file (`www/chcp.json`) is generated with the default values and `autogenerated` flag:\n```json\n{\n  \"autogenerated\": true,\n  \"release\": \"2015.09.07-12.28.38\",\n  \"content_url\": \"https://19d5cfa2.ngrok.com\",\n  \"update\": \"now\"\n}\n```\n\nHow it works:\n\n1. Launch server in the project root by executing:\n  ```sh\n  cordova-hcp server\n  ```\n\n  As a result, you will see something like this:\n  ```\n  Running server\n  Checking:  /Cordova/TestProject/www\n  local_url http://localhost:31284\n  Build 2015.09.07-10.12.25 created in /Cordova/TestProject/www\n  cordova-hcp local server available at: http://localhost:31284\n  cordova-hcp public server available at: https://19d5cfa2.ngrok.com\n  ```\n\n2. Launch application on your emulators or test devices:\n  ```sh\n  cordova run\n  ```\n\n3. When application starts - it connects to the local server via socket. In the servers console window you should see following message:\n  ```sh\n  a user connected\n  ```\n\n4. Open any file from your `www` folder and do some changes in it. For example, change `index.html`. As a result, you will see in the servers console:\n  ```\n  File changed:  /TestProject/www/index.html\n  Build 2015.09.07-10.12.31 created in /TestProject/www\n  Should trigger reload for build: 2015.09.07-10.12.31\n  ```\n\n  This means that `cordova-hcp` detected your changes, executed `build` command and sent notification via socket to the connected users.\n\n5. On the mobile side plugin captures `new release` event through the socket and loads it from the server.\n\n**Note:** if during the development you will add some new plugin to the project - then you have to:\n\n1. Delete old version of the app.\n2. Reinstall the app with `cordova run` command.\n\n#### Login command\n\n```sh\ncordova-hcp login\n```\n\nCommand requests and saves login credentials, using which deployment on the Amazon servers is performed. You need to run it before doing any deployment. Otherwise, `cordova-hcp` won't now how to login to the Amazon.\n\nWhen executed, you will be asked to enter your Amazon `Access Key Id` and `Access Key Secret`:\n```\nRunning login\nPlease provide: Amazon Access Key Id:  YOUR_ACCESS_KEY_ID\nPlease provide: Amazon Secret Access Key:  YOUR_ACCESS_KEY_SECRET\n```\n\nEntered credentials will be placed in the `.chcplogin` file:\n```json\n{\n  \"key\": \"YOUR_ACCESS_KEY_ID\",\n  \"secret\": \"YOUR_ACCESS_KEY_SECRET\"\n}\n```\n\nFrom this point you are ready to deploy your project on Amazon server.\n\n**Advise:** don't forget to put `.chcplogin` file in the ignore list of your version control system, if any is used. For git you can do this by executing:\n```sh\necho '.chcplogin' >> .gitignore\n```\n\n#### Deploy command\n\n```sh\ncordova-hcp deploy [www_directory]\n```\n\nwhere:\n- `[www_directory]` - path to the directory with your web project. If not specified - `www` is used.\n\nCommand uploads your Cordova's web project files on the Amazon server. Can be executed only after `init` and `login` commands.\n\nWhen executed, you will see the following in the console:\n```\nRunning deploy\nConfig { name: 'TestProject',\n  s3bucket: 'chcp-test',\n  s3region: 'eu-west-1',\n  ios_identifier: 'id123456789',\n  android_identifier: 'com.example.chcp.testproject',\n  update: 'start',\n  content_url: 'https://s3-eu-west-1.amazonaws.com/chcp-test',\n  release: '2015.09.07-13.02.28' }\nBuild 2015.09.07-13.02.28 created in /Cordova/TestProject/www\nDeploy started\nDeploy done\n```\n\nAs a result - all files from your web directory are uploaded to the Amazon server, which was defined on the `init` step.\n\n### Default configuration file\n\nAs mentioned in [Init command](#init-command) section of the readme - after executing `cordova-hcp init` command you will get a default configuration file, called `cordova-hcp.json`. It is created in the root folder of your project. When you run `cordova-hcp build` - data from that file is used to generate `chcp.json` file in `www` folder.\n\nIf you want - you can create `cordova-hcp.json` manually and put in there any options you want. It's just a JSON object like so:\n```json\n{\n  \"update\": \"start\",\n  \"content_url\": \"https://mycoolserver.com/mobile_content/\"\n}\n```\n\nBy default, you would probably put in there your `content_url`. But it can also be any other setting.\n\n### Ignored files list\n\nBy default, CLI client ignores all hidden files, and files from the following list:\n```\nchcp.json\nchcp.manifest\npackage.json\nnode_modules/*\n```\n\nBut if you want - you can extend this list like so:\n\n1. Create `.chcpignore` file in the root of your Cordova Project (for example, `/Cordova/TestProject/.chcpignore`).\n2. Add ignored files. For example:\n\n```\ndirty.html\nimages/*\nlibs/*\n```\nAs a result, those files will be excluded from the `chcp.manifest`, and ignored by the `server` in local development mode.\n\nIf you want - you can add comments by using `#` like this:\n\n```\n# Ignore libraries\nlibs/*\n\n# Ignore images\nimages/*\n```\n\n### Normal workflow scheme\n\n1. Initialize:\n  ```sh\n  cordova-hcp init\n  ```\n\n2. Provide login preferences:\n  ```sh\n  cordova-hcp login\n  ```\n\n3. Build your project:\n  ```sh\n  cordova-hcp build\n  ```\n\n4. Upload project on the server:\n  ```sh\n  cordova-hcp deploy\n  ```\n\n5. When new version is ready - repeat steps `3.` and `4.`.\n\n### Local development workflow scheme\n\n1. Run server:\n  ```sh\n  cordova-hcp server\n  ```\n\n2. Run application:\n  ```sh\n  cordova run\n  ```\n\n3. Do some changes in the `www` folder. Wait for a few moments and see the result on the launched devices (emulators).","users":{}}