https://github.com/nomisrev/koog-cli-app
Koog sample CLI application
https://github.com/nomisrev/koog-cli-app
Last synced: 9 months ago
JSON representation
Koog sample CLI application
- Host: GitHub
- URL: https://github.com/nomisrev/koog-cli-app
- Owner: nomisRev
- Created: 2025-08-22T11:08:24.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-01T09:19:43.000Z (10 months ago)
- Last Synced: 2025-09-01T11:44:54.833Z (10 months ago)
- Language: Kotlin
- Size: 80.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kotlin Multiplatform CLI Template
This project shows how to create a Kotlin Multiplatform CLI application that runs on all JVM, native targets, and
NodeJS.
It has no dependencies and is ready to be used as a template on top of your favorite KMP libraries and frameworks.
## Build & Run Targets
### Native
```console
./gradlew linkReleaseExecutableMacosArm64
build/bin/macosArm64/releaseExecutable/MainKt.kexe one two three
```
```text
Hello KMP: one, two, three
```
### NodeJS
```console
./gradlew compileProductionExecutableKotlinJs
node build/compileSync/js/main/productionExecutable/kotlin/kmp-cli-template.js one two three
```
```text
Hello KMP: one, two, three
```
### Jvm
```console
./gradlew distZip
cd build/distributions
unzip kmp-cli-template-1.0-SNAPSHOT-jvm.zip
cd kmp-cli-template-1.0-SNAPSHOT-jvm
./bin/kmp-cli-template one two three
```
```text
Hello KMP: one, two, three
```
## Running from Gradle directly
```console
./gradlew jvmRun --args='one two three'
```