@hexmon_tech/cli
v0.1.0
Published
acx cli package.
Maintainers
Readme
@hexmon_tech/cli
Developer CLI for policy validation, type generation, diffing, golden tests, and scaffolding.
Install
pnpm add -D @hexmon_tech/cliCommands
acx init --dir .
acx validate examples/policies/basic.policy.json
acx types examples/policies/basic.policy.json --out src/policy-types.ts
acx test examples/policy-tests/basic --policy examples/policies/basic.policy.json
acx diff examples/policies/basic.policy.json examples/policies/multi-tenant.policy.jsonAPI Overview
- Programmatic entry:
runCli(argv, options) - Command helpers:
runValidateCommand,runTypesCommand,runTestCommand,runDiffCommand,runInitCommand
Compatibility
- Node
>=18 - Works offline; no external services required
Verify
pnpm --filter @hexmon_tech/cli typecheck
pnpm --filter @hexmon_tech/cli test
pnpm --filter @hexmon_tech/cli build
node packages/cli/dist/bin.cjs --help