Skip to main content

List policies

Create policy

This creates a single-clause policy, writes ~/.esper/data/policies/login-policy.json, and submits it to Esper. --action, --entity, and --mitigation accept UUIDs or local data names. Use --file for multi-clause or advanced policy payloads.

Apply policy (idempotent)

The apply command creates or updates based on policy_id presence in the JSON:
  • With policy_id: Updates existing policy
  • Without policy_id: Creates new policy
Best PracticeUse apply in CI/CD pipelines for declarative policy management.

Update policy

Delete policy

Common Workflows

Deploy new policy set

Rollback policy change