jcasbin / casbin-java-cli

Java CLI for jCasbin
Apache License 2.0
3 stars 2 forks source link

casbin-java-cli

casbin-java-cli is a command-line tool based on jcasbin, enabling you to use all of jcasbin's APIs in the shell.

Installation

  1. Clone project from repository
git clone https://github.com/jcasbin/casbin-java-cli.git
  1. Build project, the jar package will be generated in the target directory
cd casbin-java-cli
mvn clean install

Options

options description must remark
-m, --model The path of the model file or model text y Please wrap it with "" and separate each line with \|
-p, --policy The path of the policy file or policy text y Please wrap it with "" and separate each line with \|
-e, --enforce Check permissions n Please wrap it with ""
-ex, --enforceEx Check permissions and get which policy it is n Please wrap it with ""
-AF, --addFuntion Add custom funtion n Please wrap it with "" and separate each line with \|
-ap, --addPolicy Add a policy rule to the policy file n Please wrap it with ""
-rp, --removePolicy Remove a policy rule from the policy file n Please wrap it with ""

Get started