Tool Chain/REPL
Tool Chain
Use the ApiHug REPL to discover modules, run workflow commands, and manage AI tooling from the terminal.
ApiHug REPL is the terminal-first entry point for command discovery, workflow installation, and module-aware navigation.
The REPL gives you:
Not every team wants to work only from the IDE. REPL gives the same ApiHug toolchain a scriptable, terminal-oriented surface.
Add the REPL plugin to gradle/libs.versions.toml:
[versions]
apihugVersion = "2.0.2-RELEASE"
[plugins]
hope-repl = { id = "com.apihug.repl", version.ref = "apihugVersion" }
Enable it in build.gradle:
plugins {
alias(libs.plugins.hope.repl)
}
./gradlew :hope
That generates the apihug and apihug.bat launchers.
Common first commands:
help
ls
cd --module-name demo-app-proto
pwd
:hopeOlder projects may be missing repository declarations in the root build.gradle. Add them before rerunning the task:
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/libs-release" }
maven { url "https://repo.spring.io/milestone" }
}