Skip to content

termuxvoid/apkgen-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

apkgen-cli

A CLI tool to quickly generate Android APKs from local templates.

Prerequisites

  • Termux (from F-Droid, not Play Store)
  • TermuxVoid repository configured

Installation

apt install apkgen-cli -y

Quick Start

# Scaffold a new Java project
apkgen create myapp

# Enter the project directory
cd myapp

# Build a debug APK
apkgen build debug

# Output: app/build/outputs/myapp-debug.apk

Commands

create <directory> [--kotlin|--flutter]

Clones the project template into a new directory and prompts for app name and package name. Defaults to Java if no flag is specified.

# Java project (default)
apkgen create myapp

# Kotlin project
apkgen create myapp --kotlin

# Flutter project
apkgen create myapp --flutter

build debug

Compiles a debug APK with debug signing enabled (Android).

apkgen build debug

build release

Compiles an unsigned release APK (Android). Sign manually with apksigner or jarsigner.

apkgen build release

build flutter

Builds a debug APK for Flutter projects with split ABI outputs.

apkgen build flutter

clean

Removes all build artifacts from the project directory.

apkgen clean

help

Prints usage information.

apkgen help

Command Reference

Command Description
create <dir> Scaffold Java project (default)
create <dir> --kotlin Scaffold Kotlin project
create <dir> --flutter Scaffold Flutter project
build debug Build debug-signed APK (Android)
build release Build unsigned release APK (Android)
build flutter Build debug APK (Flutter, split ABI)
clean Remove build outputs
help Show help text

Output

Android (Java/Kotlin)

Built APKs are placed in:

app/build/outputs/
├── myapp-debug.apk
└── myapp-release-unsigned.apk

Flutter

Built APKs (split by ABI) are placed in the Flutter build output directory.

Examples

# Create and build a Java app
apkgen create myapp
cd myapp && apkgen build debug

# Create and build a Kotlin app
apkgen create myapp --kotlin
cd myapp && apkgen build debug

# Create and build a Flutter app
apkgen create myflutter --flutter
cd myflutter && apkgen build flutter

# Clean build artifacts
apkgen clean

Repository

Available via the TermuxVoid repository.


Made for Termux — TermuxVoid

About

apkgen – CLI tool for Termux to generate Android APKs from a template: clone, rename package, restructure source, build debug/release.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors