Skip to main content

atlasent-policy CLI

atlasent-policy treats your authorization policies like code. Keep them as YAML or JSON files in a repo, review them in pull requests, see exactly what will change with plan, and publish on merge with apply. validate, test, convert, and verify-bundle run without network access, using the same rule engine the runtime uses. plan, pull, and apply talk to AtlaSent, and only apply writes.

Install

The CLI is not published to npm. npm install -g @atlasent/cli returns a 404; don’t use it. The CLI ships as one bundled file in the public Atlasent/atlasent-policies repository.
Nothing to install beyond Node 20 or later. Run it straight from the public repository, pinned to a release tag for reproducible runs:
The examples below write atlasent-policy for short; substitute npx github:Atlasent/atlasent-policies#v1.

Configuration

Commands

dir defaults to policies/.

A policy file

One file per action type. rules is the same rule object the runtime evaluates:
The action class must already exist in your organization; plan tells you if it doesn’t.

Tests

Put test cases next to the policy as <action_type>.tests.yaml. now fixes the clock, so tests are deterministic whenever they run:
Local tests cover a policy’s rules. They don’t exercise action-class requirements such as MFA, verified actor identity, or human approval, which the runtime enforces separately, so a passing test isn’t a guarantee of a live allow.

CI integration

The public repository also ships a GitHub Action that runs plan on pull requests and apply on merge:
Or run the offline checks directly:
Use two keys: a policy:read key for pull-request plans and a policy:write key only on the apply job.

What this CLI doesn’t do

  • Decide for the runtime. The runtime is always the source of truth for authorization decisions. The CLI lets you check that the rules you wrote say what you meant before you publish them.
  • Bypass governed publishing. apply publishes through the governed path in the runtime. If an action class has an approval chain, the publish is refused and the job exits 1 with the reason.

Source

Atlasent/atlasent-policies holds the CLI source (Apache-2.0), starter policies with test suites, the policy JSON Schema, and the GitHub Action.