Registry / devops / legispro-cli

legispro-cli

JSON →
library1.0.41jsnpmunverified

A CLI tool for managing LegisPro legislative data systems, including release asset deployment, data synchronization, and user provisioning with authentication proxy mapping. Current stable version is 1.0.41, built on oclif and Node.js >=18. Ships TypeScript types. Differentiates by offering incremental data merging from GitHub releases, soft/hard user removal, and password rotation for mapped users. Primarily used in Xcential's legislative environment.

npm install legispro-cli
INSTALL
IMPORT
SIG · LEGISPRO-CLI
L
legispro-cli
devopsjavascriptv1.0.41
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

cli
import {cli} from 'legispro-cli'
import legisproCli from 'legispro-cli'
Default export not available; named export 'cli' provides the CLI interface.
run
import {run} from 'legispro-cli'
require('legispro-cli').run()
ESM-only since v1.0.0; CommonJS require not supported.
types
import type {Flags} from 'legispro-cli'
import {Flags} from 'legispro-cli'
Flags type is exported as a type only; use import type for runtime efficiency.

Shows how to programmatically run the LegisPro CLI using the ESM import and handle exit codes.

#!/usr/bin/env node import {run} from 'legispro-cli'; run(process.argv.slice(2)).then(() => process.exit(0)).catch(err => { console.error(err); process.exit(1); });
Debug
Known issues
gotchaThe CLI is ESM-only; require() will fail with ERR_REQUIRE_ESM.
fix
Use import syntax instead of require.
affects: >=1.0.0
breakingNode.js >=18 required; earlier versions produce SyntaxError.
fix
Upgrade Node.js to v18 or later.
affects: >=1.0.0
deprecatedThe --skip-data-check flag is deprecated and will be removed in v2.0.
fix
Use --no-sync-data to skip data synchronization.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: Cannot read properties of undefined (reading 'split')
Missing or malformed arguments to a command.
fix
Check that you pass the correct arguments, e.g., --ids user@example.com.
Error: EACCES: permission denied, open '/usr/local/lib/node_modules/legispro-cli/...'
Global install requires sudo or proper permissions.
fix
Install with sudo or use a version manager like nvm.
Upgrade
Version history
1.0.41latest on npm
Audit
Dependencies
@oclif/corerequiredCLI framework
Agent activity
4 hits · last 30 days
node
4
Resources
legispro-cli — npm install legispro-cli · libregistry