38 stable releases

4.2.2 Nov 11, 2024
4.1.0 Sep 30, 2024
3.4.1 Sep 23, 2024
3.2.1 May 31, 2024
2.3.1 Jul 20, 2023

#684 in Configuration

Download history 152/week @ 2024-08-21 110/week @ 2024-08-28 181/week @ 2024-09-04 405/week @ 2024-09-11 346/week @ 2024-09-18 373/week @ 2024-09-25 472/week @ 2024-10-02 385/week @ 2024-10-09 135/week @ 2024-10-16 27/week @ 2024-10-23 133/week @ 2024-10-30 335/week @ 2024-11-06 732/week @ 2024-11-13 1108/week @ 2024-11-20 872/week @ 2024-11-27 908/week @ 2024-12-04

3,713 downloads per month

Apache-2.0

1MB
17K SLoC

Cedar CLI

This package contains the Command Line Interface (CLI) for Cedar.

For more information about the Cedar language/project, please take a look at cedarpolicy.com. See also the cedar-policy package, which is the main public Rust API for Cedar.

This app uses the annotation @id("PID") as a simple way to define policy ids. This usage is not standard and annotations have custom use depending on the app.

Install

You will need to install Rust, via rustup.

To install the CLI, run cargo install cedar-policy-cli.

Build

You will need to install Rust, via rustup.

To build the CLI, run cargo build or cargo build --release.

Run

Run cargo run -- --help to list the available CLI commands.

The sample-data folder contains examples for the CLI. Refer to the instructions in each README.md to run the examples.

What's New

Changelogs for all release branches and the main branch of this repository are all maintained on the main branch; the most up-to-date changelog for this crate is here.

For a list of the current and past releases, see crates.io or Releases.

Security

See SECURITY for more information.

Contributing

We welcome contributions from the community. Please either file an issue, or see CONTRIBUTING

License

This project is licensed under the Apache-2.0 License.

Dependencies

~16–27MB
~411K SLoC