Command Line interface to the RAWG Video Games Database API.
- Java Runtime Environment (JRE) or Java Development Kit (JDK) v11 or higher
- RAWG API key obtained from RAWG.
Once ontained, set an OS Environment variable RAWG_API_KEY with the value. If missing an exception will be thrown and the process will terminate.
For Windows
Use the Windows Advanced System Settings -> Environments Variables interface.
For Linux
Add the following to your startup scripts:
export RAWG_API_KEY={yourapikey}
Navigate to the following Releases Page. Download the latest rawg-shell.jar file to your computer.
Launch command prompt and change directory to target with JAR file.
java -jar rawg-shell.jar
game describe {Title or ID}
Retrieve full game information based on RAWG ID or title.
game export -i {input-filename} -o {output-filename}
Retrieve game information on multiple titles. The input-file should have one game title per line. The output-filename will contain results in comma-seperated-value format.
game search {query}
Search for games using full query syntax. Results shown on console.
Technology | Description | Use |
---|---|---|
Spring Boot | REST Microservices Framework | Runtime |
Spring Framework | Core Framework | Runtime |
Spring Shell | Command Shell Framework | Runtime |
Feign | Feign REST Client | Runtime |
Jayway JsonPath | Json Path Expression Library | Runtime |
rawg-shell uses a Apache Maven-based build system.
In the instructions below, mvnw
is invoked from the root of the source tree and serves as
a cross-platform, self-contained bootstrap mechanism for the build.
Be sure that your JAVA_HOME
environment variable points to the jdk-11
folder extracted from the JDK download.
git clone https://github.com/rmkellogg/rawg-shell.git
Linux
./mvnw clean package
Windows
mvnw clean package
Linux
./mvnw clean package -DskipTests=true
Windows
mvnw clean package -DskipTests=true
The target folder will contain Javadocs, a Zip file with all source code and the executable JAR file.
This project requires that you have an API key obtained from RAWG. Follow the instructions above to configure your environment.
java -jar rawg-shell.jar
rawg-shell is Open Source software released under the Apache 2.0 license.