Usage
This section provides practical examples for end users.
Install as a development dependency
sh
cd /path/to/your-project
pnpm add -D motion-plus-installersh
cd /path/to/your-project
npm install --save-dev motion-plus-installerRun temporarily (npx / dlx)
sh
pnpm dlx motion-plus-installer i motion-plus@latestsh
npx motion-plus-installer motion-plus@latestEnvironment variables (PowerShell example)
sh
$env:MOTION_TOKEN = 'your-token'sh
pnpm dlx motion-plus-installer i motion-plus@latestsh
npx motion-plus-installer i motion-plus@latestUsing ENV files (dotenv-cli)
sh
pnpm dlx dotenv-cli -e .env -- pnpm dlx motion-plus-installer i motion-plus@latestsh
npx dotenv-cli -e .env -- npx motion-plus-installer i motion-plus@latestCI Example (GitHub Actions)
yaml
- name: Install CLI
run: pnpm add --save-dev motion-plus-installer
- name: Run installer
env:
MOTION_TOKEN: ${{ secrets.MOTION_TOKEN }}
run: npx motion-plus-installer i motion-plus@latestWarning
MOTION_TOKENis sensitive information.In CI environments, store it as a secret (see Token Notes).- Be mindful of how
.tgzfiles are handled (--keep/--no-keep).
Token Notes
Using .env is convenient for local testing, but in production or CI you must rely on a secret store.
For more details, see the CLI Reference and Environment Variables & Configuration.