Skip to main content

A command-line tool for Kotlin project management

Project description

Kotlin CLI Tool

A command-line interface tool for Kotlin project management, providing templates for Clean Architecture and Flow-based projects.

Installation

You can install the package using pip:

pip install kotlin-cli

Or with uv:

uv pip install kotlin-cli

Usage

After installation, you can use the CLI tool with the following commands:

Create a New Project

To create a new Kotlin Clean Architecture project:

kotlin create kotlin <project_name>

To create a new Kotlin Flow-based project:

kotlin create flow <project_name>

Replace <project_name> with the desired name for your project. This command will generate a project structure that includes:

  • Root Files: Gradle configuration files including build scripts
  • App Structure: Standard Android application structure with src, res, and test directories
  • Architecture Components: Clean architecture layers organized into data, domain, and UI packages

Check Version

To display the version of the Kotlin CLI tool:

kotlin version

Project Structures

Clean Architecture

The Clean Architecture project includes:

  • Data Layer: Local and remote data sources, repositories
  • Domain Layer: Use cases and business models
  • UI Layer: Activities, fragments, adapters

Flow-based Architecture

The Flow-based project extends the Clean Architecture with:

  • Kotlin Flow Components: Data flow providers and flow-based use cases
  • State Management: UI state handling with Loading/Success/Error patterns
  • Coroutines Integration: Advanced asynchronous programming with Coroutines

Features

  • Create new Kotlin projects with a single command
  • Choose between different architectural templates
  • Ready-to-use project structure following best practices
  • Gradle configuration with common Android dependencies
  • Extensible architecture for modern Android development

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kotlin_cli-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file kotlin_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kotlin_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for kotlin_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d9ecc85460212826b40fc65ee36d198a6431997ea489775e02328862af25ed6
MD5 a20d3fc2f024cfd0cc572398949e7e0e
BLAKE2b-256 cb007287ba546ea69e09821cd211508cc2ccd3399064104d7361666767702b70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page