github.com/spf13/cobra
v1.10.2
#34 most downloaded on Go modules
spf13/cobra
What this package is like to depend on
Last release 1 months ago
11 Jul 2026
Release timing varies
gaps range from 9 days to 4 months
Some releases are documented
notes for 10 of 27 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
765 releases · first in 2013
24 releases in the last 12 months
see the full history below
Release timeline
765 releases · Sep 2013 to Jul 2026Releases
latest 60 of 765-
v1.10.3-0.20260711004307-adbc8813901b11 Jul 2026 pre-releaseNothing published for this version
-
v1.10.3-0.20260425230741-ad460ea8f24925 Apr 2026 pre-releaseNothing published for this version
-
v1.10.3-0.20260424204157-746ef071587224 Apr 2026 pre-releaseNothing published for this version
-
v1.10.3-0.20260415192305-f2878bab8c9615 Apr 2026 pre-releaseNothing published for this version
-
v1.10.3-0.20251210021850-61968e893eee10 Dec 2025 pre-releaseNothing published for this version
-
v1.10.3-0.20251206141439-10d4b48a79be06 Dec 2025 pre-releaseNothing published for this version
-
v1.10.203 Dec 2025Release notes
Open source →🔧 Dependencies
- chore: Migrate from
gopkg.in/yaml.v3togo.yaml.in/yaml/v3by @dims in #2336 - thegopkg.in/yaml.v3package has been deprecated for some time: this should significantly cleanup dependency/supply-chains for consumers ofspf13/cobra
📈 CI/CD
- Fix linter and allow CI to pass by @marckhouzam in #2327
- fix: actions/setup-go v6 by @jpmcb in #2337
🔥✍🏼 Docs
🍂 Refactors
- refactor: replace several vars with consts by @htoyoda18 in #2328
- refactor: change minUsagePadding from var to const by @ssam18 in #2325
🤗 New Contributors
- @rvergis made their first contribution in #2316
- @htoyoda18 made their first contribution in #2328
- @ssam18 made their first contribution in #2325
- @dims made their first contribution in #2336
Full Changelog: v1.10.1...v1.10.2
Thank you to our amazing contributors!!!!! 🐍 🚀
- chore: Migrate from
-
v1.10.2-0.20251203235115-88b30ab89da203 Dec 2025 pre-releaseNothing published for this version
-
v1.10.2-0.20251118033327-fc81d200346918 Nov 2025 pre-releaseNothing published for this version
-
v1.10.2-0.20251117144810-117698a604b617 Nov 2025 pre-releaseNothing published for this version
-
v1.10.2-0.20251114140144-06298925567014 Nov 2025 pre-releaseNothing published for this version
-
v1.10.2-0.20251010135735-4c363afb59d510 Oct 2025 pre-releaseNothing published for this version
-
v1.10.101 Sep 2025Release notes
Open source →🐛 Fix
v1.0.9 of pflags brought back
ParseErrorsWhitelistand marked it as deprecatedFull Changelog: v1.10.0...v1.10.1
-
v1.10.1-0.20251203235115-88b30ab89da203 Dec 2025 pre-releaseNothing published for this version
-
v1.10.031 Aug 2025Release notes
Open source →What's Changed
🚨 Attention!
- Bump pflag to 1.0.8 by @tomasaschan in #2303
This version of
pflagcarried a breaking change: it renamedParseErrorsWhitelisttoParseErrorsAllowlistwhich can break builds if bothpflagandcobraare dependencies in your project.- If you use both
pflag andcobra, upgradepflagto 1.0.8 andcobrato1.10.0` - or use the newer, fixed version of
pflagv1.0.9 which keeps the deprecatedParseErrorsWhitelist
More details can be found here: #2303 (comment)
✨ Features
- Flow context to command in SetHelpFunc by @Frassle in #2241
- The default ShellCompDirective can be customized for a command and its subcommands by @albers in #2238
🐛 Fix
🪠 Testing
📝 Docs
- Remove traling curlybrace by @yedayak in #2237
- Update command.go by @styee in #2248
- feat: Add security policy by @jpmcb in #2253
- Update Readme (Warp) by @ericdachen in #2267
- Add Periscope to the list of projects using Cobra by @anishathalye in #2299
New Contributors
- @harryzcy made their first contribution in #2236
- @yedayak made their first contribution in #2237
- @Frassle made their first contribution in #2241
- @styee made their first contribution in #2248
- @ericdachen made their first contribution in #2267
- @albers made their first contribution in #2238
- @anishathalye made their first contribution in #2299
- @tomasaschan made their first contribution in #2303
Full Changelog: v1.9.1...v1.9.2
-
v1.9.2-0.20250831231508-51d67519672931 Aug 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250811135823-3f3b8188253411 Aug 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250804051401-dcaf42e2633404 Aug 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250531123604-6dec1ae2665931 May 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250531122004-c8289c10302031 May 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250531122004-4af7b64d319831 May 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250506021720-db3ddb5cf49606 May 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250415194427-0ed70dcfd4d215 Apr 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250311125636-ceb39aba25c811 Mar 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250310224630-c25b5983453110 Mar 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250307145322-4f9ef8cdbbc807 Mar 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250221124614-1995054b003021 Feb 2025 pre-releaseNothing published for this version
-
v1.9.2-0.20250217191617-f98cf4216d3c17 Feb 2025 pre-releaseNothing published for this version
-
v1.9.116 Feb 2025Release notes
Open source →🐛 Fixes
- Fix CompletionFunc implementation by @ccoVeille in #2234
- Revert "Make detection for test-binary more universal (#2173)" by @marckhouzam in #2235
Full Changelog: v1.9.0...v1.9.1
-
v1.9.1-0.20251203235115-88b30ab89da203 Dec 2025 pre-releaseNothing published for this version
-
v1.9.1-0.20250216180814-a97f9fd47b2916 Feb 2025 pre-releaseNothing published for this version
-
v1.9.015 Feb 2025Release notes
Open source →✨ Features
- Allow linker to perform deadcode elimination for program using Cobra by @aarzilli in #1956
- Add default completion command even if there are no other sub-commands by @marckhouzam in #1559
- Add CompletionWithDesc helper by @ccoVeille in #2231
🐛 Fixes
- Fix deprecation comment for Command.SetOutput by @thaJeztah in #2172
- Replace deprecated ioutil usage by @nirs in #2181
- Fix --version help and output for plugins by @nirs in #2180
- Allow to reset the templates to the default by @marckhouzam in #2229
🤖 Completions
- Make Powershell completion work in constrained mode by @lstemplinger in #2196
- Improve detection for flags that accept multiple values by @thaJeztah in #2210
- add CompletionFunc type to help with completions by @ccoVeille in #2220
- Add similar whitespace escape logic to bash v2 completions than in other completions by @kangasta in #1743
- Print ActiveHelp for bash along other completions by @marckhouzam in #2076
- fix(completions): Complete map flags multiple times by @gabe565 in #2174
- fix(bash): nounset unbound file filter variable on empty extension by @scop in #2228
🧪 Testing
- Test also with go 1.23 by @nirs in #2182
- Make detection for test-binary more universal by @thaJeztah in #2173
✍🏼 Documentation
- docs: update README.md by @eltociear in #2197
- Improve site formatting by @nirs in #2183
- doc: add Conduit by @raulb in #2230
- doc: azion project added to the list of CLIs that use cobra by @maxwelbm in #2198
- Fix broken links in active_help.md by @vuil in #2202
- chore: fix function name in comment by @zhuhaicity in #2216
🔧 Dependency upgrades
- build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.5 to 2.0.6 by @thaJeztah in #2206
- Update to latest go-md2man by @mikelolasagasti in #2201
- Upgrade
pflagdependencies for v1.9.0 by @jpmcb in #2233
Thank you to all of our amazing contributors and all the great work that's been going into the completions feature!!
👋🏼 New Contributors
- @gabe565 made their first contribution in #2174
- @maxwelbm made their first contribution in #2198
- @lstemplinger made their first contribution in #2196
- @vuil made their first contribution in #2202
- @mikelolasagasti made their first contribution in #2201
- @zhuhaicity made their first contribution in #2216
- @ccoVeille made their first contribution in #2220
- @kangasta made their first contribution in #1743
- @aarzilli made their first contribution in #1956
Full Changelog: v1.8.1...v1.9.0
-
v1.8.2-0.20250212010054-680936a2200b12 Feb 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250209160607-8cb30f9ca53a09 Feb 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250206203525-17b6dca2ffaf06 Feb 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250206152544-ab5cadcc1bbe06 Feb 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250202003534-4ba5566f570402 Feb 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250130002846-41b26ec8bb5930 Jan 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250127144343-611e16c322e327 Jan 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250123022830-09d5664f34e323 Jan 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250122013405-6c3c1163c6df22 Jan 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20250112124928-01ffff4eca5a12 Jan 2025 pre-releaseNothing published for this version
-
v1.8.2-0.20241228224143-0745e557620528 Dec 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20241217022634-9f9056765ccb17 Dec 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20241211122608-85196307501d11 Dec 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20241105111924-02326d52c07005 Nov 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20241104004501-5a138f143f2504 Nov 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20241016181347-3a5efaede9d316 Oct 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20241012160827-5bef9d8d87ad12 Oct 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20241011104047-11ab62158ac711 Oct 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20240824230244-78bfc837fe3524 Aug 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20240824110526-511af59cb36024 Aug 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20240728161807-756ba6dad61428 Jul 2024 pre-releaseNothing published for this version
-
v1.8.2-0.20240716233629-371ae25d2c8216 Jul 2024 pre-releaseNothing published for this version
-
v1.8.101 Jun 2024Release notes
Open source →✨ Features
🐛 Bug fixes
🔧 Maintenance
- build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.3 to 2.0.4 by @dependabot in #2127
- Consistent annotation names by @nirs in #2140
- Remove fully inactivated linters by @nirs in #2148
- Address golangci-lint deprecation warnings, enable some more linters by @scop in #2152
🧪 Testing & CI/CD
- Add test for func in cobra.go by @korovindenis in #2094
- ci: test golang 1.22 by @cyrilico in #2113
- Optimized and added more linting by @scop in #2099
- build(deps): bump actions/setup-go from 4 to 5 by @dependabot in #2087
- build(deps): bump actions/labeler from 4 to 5 by @dependabot in #2086
- build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 by @dependabot in #2108
- build(deps): bump actions/cache from 3 to 4 by @dependabot in #2102
✏️ Documentation
- Fixes and docs for usage as plugin by @nirs in #2070
- flags: clarify documentation that LocalFlags related function do not modify the state by @niamster in #2064
- chore: remove repetitive words by @racerole in #2122
- Add LXC to the list of projects using Cobra @VaradBelwalkar in #2071
- Update projects_using_cobra.md by @marcuskohlberg in #2089
- [chore]: update projects using cobra by @cmwylie19 in #2093
- Add Taikun CLI to list of projects by @Smidra in #2098
- Add Incus to the list of projects using Cobra by @montag451 in #2118
New Contributors
- @VaradBelwalkar made their first contribution in #2071
- @marcuskohlberg made their first contribution in #2089
- @cmwylie19 made their first contribution in #2093
- @korovindenis made their first contribution in #2094
- @niamster made their first contribution in #2064
- @Smidra made their first contribution in #2098
- @montag451 made their first contribution in #2118
- @cyrilico made their first contribution in #2113
- @racerole made their first contribution in #2122
- @pedromotita made their first contribution in #2120
- @cubxxw made their first contribution in #2128
Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you!!!! 🐍
Full Changelog: v1.8.0...v1.8.1
-
v1.8.1-0.20251203235115-88b30ab89da203 Dec 2025 pre-releaseNothing published for this version
-
v1.8.1-0.20250130002846-41b26ec8bb5930 Jan 2025 pre-releaseNothing published for this version
-
v1.8.1-0.20240601103111-e94f6d0dd9a501 Jun 2024 pre-releaseNothing published for this version
-
v1.8.1-0.20240519021202-8003b74a10ef19 May 2024 pre-releaseNothing published for this version
-
v1.8.1-0.20240513101026-72f0e7845e0513 May 2024 pre-releaseNothing published for this version