Plugin for base-methods that maps built-in methods to CLI arguments, supporting methods from plugins like base-store, base-options, and base-data. Current stable version: 0.5.0. Release cadence: infrequent, no recent updates. Key differentiators: simplifies setting up command line logic for base applications by adding a cli object with .map(), .alias(), and .process() methods. Alternative: base-config for declarative configuration.
npm install base-cliVerified import paths — ran on the pinned version, not inferred.
Demonstrates registering base-cli plugin, mapping CLI flags to base methods, and processing argv.
Use base@0.x or fork/update plugin.
Consider migrating to base-config or modern CLI framework.
app.use(cli()) instead of app.use(cli)
Use app.cli.map('get', (key, val) => app.get(key, val));Ensure app.use(cli()); is called before accessing app.cli
Downgrade base to 0.x or use a different CLI plugin.