@omniplayr/cli
v1.2.2
Published
Easily install and download plugins for your OmniPlayr server
Readme
OmniPlayr CLI
The official CLI for managing plugins on your OmniPlayr server.
Installation
npm (recommended)
npm install -g @omniplayr/cliHomebrew (macOS and Linux)
brew tap OmniPlayr/homebrew-tap
brew install omniplayrScoop (Windows)
scoop bucket add omniplayr https://github.com/OmniPlayr/scoop-bucket
scoop install omniplayrWithout installing
npx @omniplayr/cliUsage
All commands should be run from the root of your OmniPlayr project directory.
Install a plugin
omniplayr install <plugin-name>By default, the CLI detects which plugin directories exist and installs into both backend and frontend. To target only one:
omniplayr install <plugin-name> --target backend
omniplayr install <plugin-name> --target frontendTo install a specific version:
omniplayr install <plugin-name> --version 1.2.0List installed plugins
omniplayr listLog in to the registry
omniplayr loginThis opens your browser to the OmniPlayr Plugin Registry login page. After logging in, your access token is saved locally to ~/.omniplayr/config.json.
Publish a plugin
omniplayr publishRun this from your plugin directory. Your package.json must have a name and version field. You must be logged in first.
Files matching your .omniplayrignore or .gitignore are excluded from the published package.
Log out
omniplayr logoutRemoves your saved access token.
Authentication
The CLI uses OAuth-style browser-based login. After running omniplayr login, a local HTTP server starts on a random port to receive the callback. Your browser opens to the registry login page. After logging in, the token is saved to ~/.omniplayr/config.json.
Publishing a Plugin
Before publishing, make sure your plugin directory contains a valid package.json:
{
"id": "my-plugin@yourname",
"name": "My Plugin",
"author": "yourname",
"version": "1.0.0",
"description": "What this plugin does"
}Then run:
omniplayr publishThe CLI packs your project into a tarball (excluding ignored files) and uploads it to the registry. See the publishing guide for full details.
Building from Source
Requirements: Node.js 20+
git clone https://github.com/OmniPlayr/OmniPlayr-CLI.git
cd OmniPlayr-CLI
npm installTo build a standalone binary:
npm run build:linux
npm run build:win
npm run build:mac-arm64Binaries are output to dist/.
Contributing
See CONTRIBUTING.md and the Contributor License Agreement.
License
MIT - see LICENSE.
