- Node.js 18+
- npm
git clone https://github.com/srcpush/code-push-cli.git
cd code-push-cli
npm install| Script | Description |
|---|---|
npm run build |
Build dist/cli.js and dist/index.js with Vite |
npm run dev |
Watch mode build |
npm test |
Run Vitest suite |
npm run test:watch |
Vitest in watch mode |
npm run typecheck |
TypeScript check (tsconfig.build.json) |
npm run lint |
ESLint on src/ and tests/ |
npm run format |
Prettier write |
src/
├── cli.ts # CLI entry (shebang)
├── index.ts # SDK export (AccountManager)
├── commands/ # parser, executor, debug
├── sdk/ # management + acquisition SDKs
├── lib/ # hash, sign, react-native helpers
├── types/ # shared types
└── utils/ # file utilities
tests/
├── unit/ # hash, management-sdk, acquisition-sdk
├── integration/ # CLI command tests
├── fixtures/ # TestApp, zip archives
└── helpers/ # mocks and setup
npm run build
node dist/cli.js -h
npm link # optional: install `srcpush` globallyMIT — see LICENSE in the repository root.
src/lib/hash.ts must stay in sync with api/src/utils/hash-utils.ts in the monorepo. Any hashing change requires updating both files.