Registry / devops / amos-plugin-cli

amos-plugin-cli

JSON →
library1.2.0jsnpmunverified

A CLI tool for installing, generating, and publishing plugins for the Amos framework (v1.2.0). It supports plugin lifecycle management including scaffolding, packaging, and distribution. Key features include configurable plugin sources, extensible copy commands (MF and UMD), and multi-source configuration (environment variables, .pluginsrc, package.json). Release cadence appears irregular. Differentiates from generic plugin managers by tight coupling with Amos framework conventions and support for Chinese-language documentation.

npm install amos-plugin-cli
INSTALL
IMPORT
SIG · AMOS-PLUGIN-CLI
A
amos-plugin-cli
devopsjavascriptv1.2.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

amos-plugin
npx amos-plugin <command>
const amosPlugin = require('amos-plugin-cli')
This is a CLI tool, not a library. Use npx or global install, not require().

Shows installation, scaffolding, packaging, and custom configuration of a plugin.

npm install -g amos-plugin-cli # View help amos-plugin -h # Create a new plugin project scaffold amos-plugin -t # Package current plugin into a tarball (ZIP) amos-plugin -p # Install a plugin named 'hello' from configured site amos-plugin hello # Install with custom extension and site amos-plugin hello --ext rar --amos-plugin-site http://localhost:3333/plugins
amos --version
Debug
Known issues
gotchaEnvironment variables (AMOS_PLUGIN_*) may conflict with other tools. Use .pluginsrc or package.json for isolation.
fix
Configure via .pluginsrc or package.json 'amosPluginConfig' instead of env vars.
affects: >=1.0.0
deprecatedThe --mf and --umd options copy module federation/UMD files but their configuration format (mfrc/umdrc) changed in 1.1.x.
fix
Use .mfrc.json or .umdrc.js format. Check version-specific examples in README.
affects: >=1.1.0
gotchaPlugin packaging (-p) only supports ZIP format despite config allowing other extensions.
fix
Ensure plugins are ZIP archives. Custom extensions only apply to remote plugin storage, not local packaging.
affects: <=1.2.0
Errors
Common errors & fixes
CLI_NOT_FOUND
Module not installed globally or npx not used.
fix
Install globally: npm install -g amos-plugin-cli. Or run with npx: npx amos-plugin -v.
CONFIG_FILE_MISSING
.pluginsrc or package.json missing required config fields.
fix
Create .pluginsrc in project root with at least amos_plugin_site and amos_plugin_dir.
PLUGIN_ARCHIVE_INVALID
Plugin ZIP file corrupted or missing index.plugin.js.
fix
Re-package plugin with amos-plugin -p, ensuring project structure includes index.plugin.js.
Upgrade
Version history
1.2.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
28
Resources
amos-plugin-cli — npm install amos-plugin-cli · libregistry