This project is a template for using Alloy CLI. It contains a simple example using Alloy API and add it on CLI.
You can extend this project to your own alloy cli project by following the steps below:
- Install OpenJDK/JDK
- Clone this project or Create a new project with this project as template (click
Use this template
button on the top of this page) - Open the project with your favorite IDE (IntelliJ IDEA, Eclipse, etc.)
- Run
./gradlew build
to build the project
- This will create a jar file in
build/libs
directory
- Run
java -jar ./build/libs/<jar-file-name>.jar -e
This will run an example using the Alloy API. The example is in the ExampleUsingTheAPI.java
file.
The CLI options are defined in the AlloyCli.java
file. You can implement your own package and classes to extend the CLI functionality.
Please check build.gradle for additional dependencies.