1.2.1 • Published 11 months ago
@getik-public/cli v1.2.1
Getik CLI
@getik-public/cli
is a collection of scripts meant to ease the development flow. For available scripts read further.
How to use the cli
Add next line in your package.json
file under devDependencies
:"@getik-public/cli": "X.Y.Z"
or simply run npm i @getik-public/cli@latest --save-dev
.
Available scripts
mobile-build
Usage: getik-cli mobile-build [-p, --platform] [-e, --environment] [--syncOnly] [--aab] [--upload]
Example: getik-cli mobile-build -p android -e getikDebug --syncOnly
Example: getik-cli mobile-build --platform ios --environment getik --upload
Option | Required | Values | Description |
---|---|---|---|
-p , --platform | YES | android , ios | Platform to build for. |
-e , --environment | YES | <string> , <string>Debug | While environment can be any name, be consistent and use these: getik , vbox , qa , prod . Every environment must have a pair for debug build, so have these environments also defined: getikDebug , vboxDebug , qaDebug , prodDebug |
--syncOnly | NO | - | For development only, if you need to apply javascript build, or a new plugin was added. This will not go further to trigger an build script. |
--aab | NO | - | For --platform android only. Build aab file instead of apk file. |
--upload | NO | - | For --platform ios only. Instant upload to store after build, if successful. |
upload-to-getik-cloud
Usage: getik-cli upload-to-getik-cloud ./path/to/my-file.apk
Use this command to upload apk files to getik cloud. If successful, in command line you will find a direct link to fresh uploaded file alongside a link to the full list.
Run this command from the root of the project, as it tries to look for project name in package.json
file. Project name will be used as file name.