# How to generate zero dependency CLI using Comonicon.jl

**URL:** https://discourse.julialang.org/t/how-to-generate-zero-dependency-cli-using-comonicon-jl/132571
**Category:** General Usage
**Created:** [September 22, 2025, 2:53pm UTC](https://discourse.julialang.org/t/how-to-generate-zero-dependency-cli-using-comonicon-jl/132571 "2025-09-22T14:53:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![favba](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/favba/32/2735_2.png) [@favba](https://discourse.julialang.org/u/favba)
#### Post date: [September 22, 2025, 2:53pm UTC](https://discourse.julialang.org/t/how-to-generate-zero-dependency-cli-using-comonicon-jl/132571/1 "2025-09-22T14:53:25Z")

</div>

In Comonicon.jl 's [README](https://github.com/comonicon/Comonicon.jl/blob/main/README.md) it is said it is possible to generate CLI without adding Comonicon as dependency:

> ### Zero Dependency
> 
> You can get rid of `Comonicon` entirely after you generate the command line parsing script  
> via `write_cmd(filename, command_object)`. It means if you copy this file into your script, you  
> will get a standalone Julia script (unless the script depends on something else). However,  
> this is usually not necessary since `Comonicon` itself is quite fast to load, the main latency  
> of a CLI application usually comes from other dependencies or the application itself.

It is not clear to me what this `command_object` is.  
I couldn’t find further information in the docs on how to generate the CLI script without including Comonicon as a dependency in the project.

Does anyone know the steps to do this?
