{"id":26482610,"url":"https://github.com/casbin-rs/casbin-rust-cli","last_synced_at":"2025-03-20T04:14:29.301Z","repository":{"id":273550093,"uuid":"918246399","full_name":"casbin-rs/casbin-rust-cli","owner":"casbin-rs","description":"Rust CLI for Casbin-RS","archived":false,"fork":false,"pushed_at":"2025-02-04T16:42:14.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T01:46:11.104Z","etag":null,"topics":["abac","acl","auth","authorization","authz","casbin","casbin-rs","cli","client","permission","rbac","rust","sdk"],"latest_commit_sha":null,"homepage":"https://github.com/casbin/casbin-rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casbin-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-17T14:43:53.000Z","updated_at":"2025-02-04T16:42:16.000Z","dependencies_parsed_at":"2025-01-21T15:48:50.761Z","dependency_job_id":"1d6a08cf-8af8-42bf-a3a5-478f34261e28","html_url":"https://github.com/casbin-rs/casbin-rust-cli","commit_stats":null,"previous_names":["casbin-rs/casbin-rust-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin-rs%2Fcasbin-rust-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin-rs%2Fcasbin-rust-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin-rs%2Fcasbin-rust-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin-rs%2Fcasbin-rust-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casbin-rs","download_url":"https://codeload.github.com/casbin-rs/casbin-rust-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244547570,"owners_count":20470105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abac","acl","auth","authorization","authz","casbin","casbin-rs","cli","client","permission","rbac","rust","sdk"],"created_at":"2025-03-20T04:14:28.617Z","updated_at":"2025-03-20T04:14:29.281Z","avatar_url":"https://github.com/casbin-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casbin-rust-cli\n\n[![Crates.io](https://img.shields.io/crates/v/casbin-rust-cli.svg)](https://crates.io/crates/casbin-rust-cli)\n[![Docs](https://docs.rs/casbin-rust-cli/badge.svg)](https://docs.rs/casbin-rust-cli)\n[![CI](https://github.com/casbin-rs/casbin-rust-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/casbin-rs/casbin-rust-cli/actions/workflows/ci.yml)\n\ncasbin-rust-cli is a command-line tool based on Casbin (Rust language), enabling you to use all of Casbin APIs in the shell.\n\n## Installation\n\n### From crates.io\n```shell\ncargo install --locked casbin-rust-cli\n```\n\n### Install Manually\n```shell\ngit clone https://github.com/casbin-rs/casbin-rust-cli.git\ncd casbin-rust-cli\ncargo install --path .\n```\n\n## Options\n| options        | description                                  | must |                    \n|----------------|----------------------------------------------|------|\n| `-m, --model`  | The path of the model file or model text     | y    |\n| `-p, --policy` | The path of the policy file or policy text   | y    |  \n| `enforce`      | Check permissions                            | n    |\n\n## Get started\n\n- Check whether Alice has read permission on data1\n\n    ```shell\n    ./casbin-rust-cli enforce -m \"examples/basic_model.conf\" -p \"examples/basic_policy.csv\" \"alice\" \"data1\" \"read\"\n    ```\n    \u003e {\"allow\":true,\"explain\":[]}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasbin-rs%2Fcasbin-rust-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasbin-rs%2Fcasbin-rust-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasbin-rs%2Fcasbin-rust-cli/lists"}