Docs
OverviewDefining commands

Guides

Args and flagsSubcommandsGlobal flags

Go further

Help outputConfig and environment

Resources

Source code
ReferenceAppCommandsGlobal flagsConfig seamsTags
Docs/CLI/Reference

Reference

The app, commands, the tag vocabulary, global flags, and the config seams.

Most apps need only NewApp, BaseCommand, and the tags. The rest of the reference is here for when you extend the framework with your own resolvers or output codecs.

AppNewApp, the App interface and its chainable setters, Config, and the clean-exit sentinels.CommandsThe Command interface, BaseCommand, NewBaseCommand, and the Verbosity helper.TagsEvery struct tag a command's config fields can carry.Global flagsGlobalFlags and Unknowns, the two values every Run receives.Config seamsThe Resolver and OutputCodec interfaces, and the .env helpers.
Edit or read the source on GitHub
PreviousConfig and environmentNext App

Built with in Vilnius, Lithuania Say hello!

ProductsOpen sourceDocs GitHub