CLI Command Reference
This content is for v1.1.1. Switch to the latest version for up-to-date documentation.
The zkite CLI is your single tool for project creation, live development, standalone execution, diagnostics, key generation, and production builds.
zkite --version and zkite --help work globally without requiring an existing project or connected phone.
zkite new
Section titled “zkite new”Scaffolds a new project with main.py, app.json, assets/, zkite.tailwind.json, and .gitignore.
# Create a new directory and scaffold fileszkite new myapp
# Or scaffold into the current working directoryzkite new myapp .- Existing scaffold paths are never overwritten.
- Unrelated files in the target directory are preserved.
- No
pyproject.tomlis generated by default (app.jsonis used).
zkite dev
Section titled “zkite dev”Prepares and installs a project preview, connects to the selected device, and watches supported source changes and dependency declarations for instant hot reload. In ZKite 1.1.1, modifying dependencies in requirements.txt, pyproject.toml, or app.json automatically re-resolves and synchronizes packages live without restarting dev.
zkite dev [OPTIONS]| Option | Argument | Description |
|---|---|---|
--serial |
SERIAL |
Explicitly choose target device by serial number. |
--adb |
PATH |
Custom path to the adb executable. |
--port |
NUMBER |
Local host development bridge port (default: 8765). |
--backend |
native |
Explicitly select native rendering backend. |
--devshell-apk |
PATH |
Advanced custom-shell APK override (usually unnecessary). |
zkite run
Section titled “zkite run”Builds a standalone APK for the selected device architecture, installs it, and launches it.
zkite run [OPTIONS]| Option | Argument | Description |
|---|---|---|
--serial |
SERIAL |
Target device serial number. |
--adb |
PATH |
Custom path to adb. |
--backend |
native |
Select native rendering backend. |
--keystore |
PATH |
Use an existing combined signing PEM file. |
--no-prune-stdlib |
(None) | Include the full Python standard library without pruning. |
--logs |
(None) | Continue streaming Android logcat output in terminal following launch. |
zkite build apk & zkite build aab
Section titled “zkite build apk & zkite build aab”Compiles installable APKs or distribution AAB bundles without requiring a connected physical device. APK output is per-architecture; an AAB bundles selected architectures together.
# Build per-architecture APKzkite build apk --abi arm64-v8a --out dist/
# Build multi-architecture Android App Bundle for Google Playzkite build aab --abi arm64-v8a --abi x86_64 --keystore release.pem| Option | Argument | Description |
|---|---|---|
--abi |
arm64-v8a | x86_64 |
Include specified architecture. Repeat --abi to select both. Defaults to all supported prebuilt ABIs if omitted. |
--keystore |
PATH |
Permanent signing identity for a distributable build. |
--out |
DIRECTORY |
Output directory (default: dist/). |
--no-prune-stdlib |
(None) | Disable Python standard library pruning. |
--backend |
native |
Select native rendering backend. |
zkite doctor
Section titled “zkite doctor”Checks local toolchains, selected Python interpreter, bundled native runtime payloads, and device connections.
zkite doctor [--adb PATH]zkite keygen
Section titled “zkite keygen”Generates a combined PEM and a PKCS#12 keystore for signing distributable Android apps.
zkite keygen --out release_key --cn "My App Release" --password mypassword| Option | Argument | Description |
|---|---|---|
--out |
BASENAME |
Output file base name (creates <BASENAME>.pem and <BASENAME>.p12). |
--cn |
NAME |
Certificate common name / organization identifier. |
--password |
PASSWORD |
Password for the PKCS#12 keystore. |
