UNPKG

662 BMarkdownView Raw
1## ci-helper
2##### Command-line utility for use with Kinvey and Bitbucket.
3
4### Usage
5`npm i -g ci-helper`
6
7##### Generate and output OTP to console:
8`ci-helper --op=otp --secret=xyz123`
9
10##### Get aspect of Kinvey status such as 'version', 'status'.
11`ci-helper --op=get-kinvey-status --key=version`
12
13##### Wait for Kinvey Deployment:
14```
15In order for this to work you have to:
161. Make sure these environment variables are set:
17 - PACKAGE_VERSION
18 - BITBUCKET_DEPLOYMENT_ENVIRONMENT (preset by Bitbucket)
19 - KINVEY_USER_SECRET
20 - KINVEY_SERVICE_ID
212. kinvey profile create <profile name>
223. kinvey flex deploy
23
24Then call:
25
26ci-helper --op=wait-kinvey-deploy
27```