Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cli

> 开发工具
Open source

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

24.2K stars0 likes2 views
WebsiteGitHub

About

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

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.

Issues· 35 open

View all issuesOpen on GitHub
  • #2209

    Mutually exclusive flags are not suggested by shell completion

    kind/bugstatus/triagearea/v3Updated Sep 28, 2026
  • #2192

    Features for v4 release

    area/v4Updated Sep 27, 2026
  • #2365

    Documentation on optimizing binary size

    Updated Sep 24, 2026
  • #2016

    feat: fields for VisibleFlags name/alias and Usage

    kind/featurestatus/waiting-for-responsearea/v3Updated Sep 24, 2026
  • #2075

    Improve readability of help text

    kind/featurearea/v3Updated Sep 19, 2026
  • #2418

    A bare "-" argument silently discards all following arguments in parseFlags

    Updated Aug 26, 2026
  • #2109

    Collect unknown flags

    kind/featurestatus/waiting-for-responsearea/v4Updated Aug 16, 2026
  • #2372

    cmd.Hidden is not recursive

    kind/bugstatus/triagearea/v3Updated Jul 3, 2026
  • #2126

    Help fails when a command argument is specified

    kind/bugarea/v3Updated Jul 2, 2026
  • #1634

    Add StringMap flag for altsrc

    kind/bughelp wantedarea/v2Updated Jul 1, 2026

> Tags

Goclicommand-linegogolang-library

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具