Installation
CLI Installation
Install the CLI globally via npm:
npm i -g @norrix/cliOr use npx to run without installing:
npx @norrix/cli build ios releaseBinary Aliases
The CLI registers two command aliases:
norrix: Primary commandnox: Short alias
Both work identically:
norrix build ios release
nox build ios releaseVerify Installation
Check the installed version:
norrix --versionClient SDK Installation
Install the SDK in your NativeScript project:
npm install @norrix/client-sdkWhat’s Included
The SDK package includes:
| Component | Description |
|---|---|
| TypeScript SDK | Core OTA update logic |
| iOS native module | Native OTA loader for iOS |
| Android native module | Native OTA loader for Android |
| NativeScript hooks | Auto-configuration on ns prepare |
Platform Requirements
| Platform | Minimum Version |
|---|---|
| iOS | NativeScript 8.0.0+ |
| Android | NativeScript 8.0.0+ |
Dependencies
The SDK installs these dependencies automatically:
@nativescript/zip: For extracting OTA bundles
Native Hooks
The SDK registers NativeScript hooks that run during ns prepare:
norrix-ota-ios: Configures iOS OTA loadingnorrix-ota-android: Configures Android OTA loading
These hooks are registered in the package.json and run automatically.
Updating
Update CLI
npm update -g @norrix/cliUpdate SDK
npm update @norrix/client-sdkNote: SDK updates that change native code may require a new store build. Check the changelog for breaking changes.