clawless-cli

Crates.ioclawless-cli
lib.rsclawless-cli
version0.4.0
created_at2025-12-19 14:21:30.24707+00
updated_at2025-12-19 14:21:57.896424+00
descriptionGenerate and develop CLIs with Clawless
homepage
repositoryhttps://github.com/aonyx-ai/clawless.git
max_upload_size
id1994887
size56,426
Jan David (jdno)

documentation

README

🦦 Clawless CLI

clawless-cli is the official command-line tool for working with Clawless projects. It provides scaffolding and code generation capabilities to help you quickly build and extend command-line applications.

The CLI itself is built using the Clawless framework, serving as both a useful tool and a reference implementation.

Installation

Install the CLI using cargo:

cargo install clawless-cli

Commands

clawless new

Create a new Clawless project with a complete setup:

clawless new my-app

This command:

  • Creates a new binary crate with cargo new
  • Adds clawless as a dependency
  • Sets up the project structure with main.rs and commands.rs
  • Creates a sample greet command to get you started

clawless generate command

Generate a new command in an existing Clawless project:

clawless generate command my-command

For nested commands, use slash notation:

clawless generate command db/migrate

This command:

  • Creates the command file with boilerplate code
  • Adds the necessary mod statement to the parent module
  • Supports nested command hierarchies

Usage in Projects

The typical workflow is:

  1. Create a new project:

    clawless new my-cli
    cd my-cli
    
  2. Generate additional commands:

    clawless generate command deploy
    clawless generate command config/set
    
  3. Build and run your CLI:

    cargo run -- greet World
    

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt