Organizing a project with a CLI

I have a project that I’d like to add a CLI to (using Comonicon.jl) and I’m not sure how to organize the addition of the CLI. Ideally I’d like to

  1. keep by base project, MyPackage on its own so people can just add/using MyPackage without also bothering with the CLI and its dependencies unless they want to, but
  2. somehow distribute the CLI along with the package so that they can access it’s functionality at the command line with my package <args>.

I’m able to to pretty much exactly that in Haskell and Python, but am having trouble sorting out the right way to do it in Julia.

Maybe you can find the answer from here: Julia Python equivalent of __main__?

That’s helpful but my question was more about the idiom for project organization and specifying dependencies.