2026-10-04 13:54:17 +00:00
# CommandKit
2026-11-07 23:31:14 +00:00
CommandKit helps Go applications build consistent command-line interfaces. It
provides typed flags and arguments, help, output formatting, and error reporting.
Optional integrations add commands for inspecting configuration and working with
PromptKit.
2026-10-06 16:32:59 +00:00
2026-11-07 23:31:14 +00:00
CommandKit is in alpha. Start with the [consumer guide ](docs/consumers/guide.md#core-commands )
to define a command, or run the [core example ](examples/core/README.md ).
Applications supply their own command handlers and decide when to exit;
CommandKit returns the result of each invocation.
2026-10-06 16:32:59 +00:00
2026-10-11 02:06:06 +00:00
## Modules
| Module | Package | Provides |
| --- | --- | --- |
2026-11-07 23:31:14 +00:00
| `go.maximumdirect.net/commandkit` | `commandkit` | Commands, typed inputs, shared output and error reporting, help, and version. |
| `go.maximumdirect.net/ckconfig` | `ckconfig` | Commands to view, validate, explain, and compare ConfigKit configuration. |
| `go.maximumdirect.net/ckprompt` | `ckprompt` | Commands to list and inspect PromptKit resources, discover required inputs, validate and preview requests, and run smoke tests. |
2026-10-11 02:06:06 +00:00
2026-11-07 16:01:14 +00:00
Importing an integration does not install commands. Core and the integrations
are versioned separately; see the [consumer guide ](docs/consumers/guide.md#module-selection )
for published versions, compatibility, and installation choices.
2026-10-11 02:06:06 +00:00
## Examples
2026-10-19 19:56:33 +00:00
- [Core-only example ](examples/core/README.md )
2026-10-11 02:06:06 +00:00
- [ConfigKit example ](integrations/ckconfig/examples/simple/README.md )
- [Composed ConfigKit and PromptKit example ](integrations/ckprompt/examples/composed/README.md )
2026-10-07 14:56:13 +00:00
2026-10-06 16:32:59 +00:00
## Documentation
- [Contributor guide ](docs/development.md )
2026-10-07 13:37:57 +00:00
- [Command line reference ](docs/cli.md )
2026-10-07 14:56:13 +00:00
- [Consumer guide ](docs/consumers/guide.md )
- [Internal package overview ](docs/internal/overview.md )
2026-10-08 16:49:01 +00:00
- [Maintainer release procedure ](docs/release.md )
2026-10-06 16:32:59 +00:00
- [Architecture policy ](docs/policy/architecture.md )
2026-10-07 03:55:36 +00:00
- [Policy provenance ](docs/policy/meta.md )
2026-11-04 16:04:32 +00:00
- [Future work and proposals ](docs/roadmap/future.md )
2026-10-07 18:29:24 +00:00
2026-10-06 16:32:59 +00:00
CommandKit is licensed under the [LGPL v3.0 or later ](COPYRIGHT ).
[Open Source attribution notices ](docs/oss/attribution.md ) are available.