motion-plus-installer
v0.1.0
Published
Lightweight CLI to install Motion+ packages
Maintainers
Readme
Motion Plus Installer
Lightweight CLI to install Motion+ packages
Motion Plus Installer fetches authenticated distribution .tgz files for Motion and installs them into your project. By default the CLI prefers pnpm, but it also supports npm and other package managers; you can explicitly choose one with the --pm-cmd option.
Quick install
Install in a project (dev dependency):
cd /path/to/your-project
pnpm add --save-dev motion-plus-installerOr run without installing via npx:
npx motion-plus-installer install motion-plus@latestSupported package managers
| Package manager | Support | Verified | Notes |
| --------------- | ----------------------: | :------: | ------------------------------------------------------- |
| pnpm | Recommended / preferred | ◎ | Preferred by default; most thoroughly tested. |
| npm | Supported | 〇 | Can be selected as a fallback depending on detection. |
| yarn | Supported | △ | Behavior may differ between Classic and Berry. |
| bun | Experimental | × | Detected if bun is on PATH; compatibility is limited. |
See the "Package manager auto-detection" section for detection behavior.
Required environment
MOTION_TOKEN— Bearer token used to access the protected download API.
Example (PowerShell):
$env:MOTION_TOKEN = 'your-token'
npx motion-plus-installer install motion-plus@latestCommon options
-p, --package <name>: package name (default:motion-plus).-v, --pkg-version <version>: version to fetch.--keep / --no-keep: keep downloaded.tgzafter install (default: keep).--force: force re-download.--pm-cmd <cmd>: package manager command to run (default:pnpm).-q, --quiet: minimal logging.
See motion-plus-installer --help for the full list of options.
CI example (GitHub Actions)
- 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 install motion-plus@latestLicense
See license.txt for license information.
