CLI Overview
@pwa-kit/cli has two commands:
init: create/configure a PWAKit projectsync: apply config into native project files
Install and run
Recommended (no global install):
bash
npx @pwa-kit/cli init my-pwa-iosOptional global install:
bash
npm install -g @pwa-kit/cli
pwa-kit init my-pwa-iosRun sync after manual edits to pwa-config.json:
bash
cd my-pwa-ios && npx @pwa-kit/cli syncNo-clone workflow
You do not need to clone eddmann/pwa-kit to build an app.
If init does not find PWAKitApp.xcodeproj, it downloads the latest template release, extracts it, writes config, and runs sync.
Command behavior summary
init:- interactive when
--urlis omitted in a TTY - non-interactive when
--urlis provided - validates URL/bundle/color/orientation/display inputs
- fetches web manifest when available (name/colors/orientation/display/icon)
- runs sync automatically
- interactive when
sync:- requires project + config file
- supports
apply,--dry-run, and--validate
Read next
- Detailed setup flow: init Command
- Sync behavior and validation: sync Command
- Full flag matrix and examples: CLI Reference
