Back to rankings

urfave/cli

Gocli.urfave.org

A declarative, simple, fast, and fun package for building command line tools in Go

golang-librarycommand-linegoyamlclijsontoml
Star Growth
Stars
24.2k
Forks
1.8k
Weekly Growth
Issues
52
10k20k
Jul 2013Nov 2017Mar 2022Jul 2026
ArtifactsGo Modulesgo get github.com/urfave/cli
README

Welcome to urfave/cli

Go Reference Go Report Card codecov Tests status

urfave/cli is a declarative, simple, fast, and fun package for building command line tools in Go featuring:

  • commands and subcommands with alias and prefix match support
  • flexible and permissive help system
  • dynamic shell completion for bash, zsh, fish, and powershell
  • no dependencies except Go standard library
  • input flags for simple types, slices of simple types, time, duration, and others
  • compound short flag support (-a -b -c can be shortened to -abc)
  • documentation generation in man and Markdown (supported via the urfave/cli-docs module)
  • input lookup from:
    • environment variables
    • plain text files
    • structured file formats (supported via the urfave/cli-altsrc module)

Documentation

See the hosted documentation website at https://cli.urfave.org. Contents of this website are built from the ./docs directory.

Support

Check the Q&A discussions. If you don't find answer to your question, create a new discussion.

If you found a bug or have a feature request, create a new issue.

Please keep in mind that this project is run by unpaid volunteers.

License

See LICENSE.

Related repositories
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

GoGo ModulesMIT Licensegolanggolang-library
awesome-go.com
178.8k13.4k
spf13/cobra

A Commander for modern Go CLI interactions

GoGo ModulesApache License 2.0cobracobra-library
cobra.dev
44.3k3.2k
hajimehoshi/ebiten

A dead simple 2D game engine for Go

GoGo ModulesApache License 2.0gogolang
ebitengine.org
13.4k773
go-resty/resty

Simple HTTP, REST, and SSE client library for Go

GoGo ModulesMIT Licensegolanggo
resty.dev
11.7k791
majd/ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store

GoGo ModulesMIT Licenseiosappstore
9.7k831
pdfcpu/pdfcpu

PDF tooling for Go and the command line.

GoGo ModulesApache License 2.0gogolang
pdfcpu.io
8.7k620
segmentio/kafka-go

Kafka library in Go

GoGo ModulesMIT Licensekafkagolang
8.6k853
mongodb/mongo-go-driver

The Official Golang driver for MongoDB

GoGo ModulesApache License 2.0databasedriver
mongodb.com/docs/drivers/go/current/
8.5k936
allegro/bigcache

Efficient cache for gigabytes of data written in Go.

GoGo ModulesApache License 2.0cacheperformance
allegro.tech/2016/03/writing-fast-cache-service-in-go.html
8.1k610
MontFerret/ferret

Declarative data automation language and Go runtime for structured extraction workflows.

GoGo ModulesApache License 2.0golangquery-language
ferretlang.org
6k326
pterm/pterm

✨ PTerm is a modern Go module to easily beautify console output. Featuring charts, progressbars, tables, trees, text input, select menus and much more 🚀 It's completely configurable and 100% cross-platform compatible.

GoGo ModulesMIT Licensegogolang
pterm.sh
5.5k220
yinggaozhen/awesome-go-cn

一个很棒的Go框架、库和软件的中文收录大全。:alarm_clock:脚本定期与英文文档同步,包含了各工程star数/最近更新时间,助您快速发现优质项目。Awesome Go~

MIT Licensegolanggolang-library
awesome-go.cn
5.2k534