cedar-policy-cli 4.10.0

CLI interface for the Cedar Policy language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# JSON formatted policies

The Cedar policy CLI also supports using policies in the JSON policy format.
See the [Cedar language reference](https://docs.cedarpolicy.com/policies/json-format.html) for a detailed description of this format.

In general, you can select between the Cedar and JSON formats using `--policy-format`.
For example, we can use a JSON format policy in an authorization request

```bash
cedar authorize --policy-format json \
    --policies policy.cedar.json \
    --entities entity.json \
    --principal 'User::"bob"' \
    --action 'Action::"view"' \
    --resource 'Photo::"VacationPhoto94.jpg"'`
```