Skip to content

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.


Scaffolds a new project with main.py, app.json, assets/, zkite.tailwind.json, and .gitignore.

Terminal window
# Create a new directory and scaffold files
zkite new myapp
# Or scaffold into the current working directory
zkite new myapp .
  • Existing scaffold paths are never overwritten.
  • Unrelated files in the target directory are preserved.
  • No pyproject.toml is generated by default (app.json is used).

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.

Terminal window
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).

Builds a standalone APK for the selected device architecture, installs it, and launches it.

Terminal window
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.

Compiles installable APKs or distribution AAB bundles without requiring a connected physical device. APK output is per-architecture; an AAB bundles selected architectures together.

Terminal window
# Build per-architecture APK
zkite build apk --abi arm64-v8a --out dist/
# Build multi-architecture Android App Bundle for Google Play
zkite 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.

Checks local toolchains, selected Python interpreter, bundled native runtime payloads, and device connections.

Terminal window
zkite doctor [--adb PATH]

Generates a combined PEM and a PKCS#12 keystore for signing distributable Android apps.

Terminal window
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.