chore(release): 1.2.0 [skip ci] # [1.2.0](https://github.com/casbin-rs/casbin-rust-cli/compare/v1.1.0...v1.2.0) (2025-02-03) ### Features * switch auto release action to casbin-rs/semantic-release-action-rust to release Windows binary ([#7](https://github.com/casbin-rs/casbin-rust-cli/issues/7)) ([c37869a](https://github.com/casbin-rs/casbin-rust-cli/commit/c37869af9b66baf0709918f02a4c374382c6bab7))
casbin-rust-cli is a command-line tool based on Casbin (Rust language), enabling you to use all of Casbin APIs in the shell.
cargo install --locked casbin-rust-cli
git clone https://github.com/casbin-rs/casbin-rust-cli.git cd casbin-rust-cli cargo install --path .
| options | description | must |
|---|---|---|
-m, --model | The path of the model file or model text | y |
-p, --policy | The path of the policy file or policy text | y |
enforce | Check permissions | n |
Check whether Alice has read permission on data1
./casbin-rust-cli enforce -m "examples/basic_model.conf" -p "examples/basic_policy.csv" "alice" "data1" "read"
{“allow”:true,“explain”:[]}