{"id":36741403,"url":"https://github.com/devodev/kafkactl","last_synced_at":"2026-01-12T12:29:05.949Z","repository":{"id":125010656,"uuid":"414011116","full_name":"devodev/kafkactl","owner":"devodev","description":"A CLI tool for interacting with Kafka through the Confluent Kafka Rest Proxy","archived":false,"fork":false,"pushed_at":"2021-11-01T16:27:16.000Z","size":159,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T17:29:57.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-05T23:42:24.000Z","updated_at":"2023-03-04T04:41:08.000Z","dependencies_parsed_at":"2023-04-04T11:49:35.531Z","dependency_job_id":null,"html_url":"https://github.com/devodev/kafkactl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devodev/kafkactl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fkafkactl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fkafkactl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fkafkactl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fkafkactl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devodev","download_url":"https://codeload.github.com/devodev/kafkactl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devodev%2Fkafkactl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T12:29:05.889Z","updated_at":"2026-01-12T12:29:05.934Z","avatar_url":"https://github.com/devodev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafkactl\n\n## Table of contents\n\n- [kafkactl](#kafkactl)\n  - [Table of contents](#table-of-contents)\n  - [Overview](#overview)\n  - [Build](#build)\n  - [Development](#development)\n\n## Overview\n\n`kafkactl` is a CLI tool to interact with Kafka through the Confluent Kafka Rest Proxy.\n\nThe api package follows the [OpenAPI spec](https://github.com/confluentinc/kafka-rest/blob/v6.2.1/api/v3/openapi.yaml) of Kafka Rest Proxy.\n\n## Docs\n\nDocumentation for the CLI (auto-generated by Cobra) is available [here](./docs/kafkactl.md).\n\n### Generate docs\n\nTo generate CLI markup docs (provided by Cobra), run the following command at the root of the repo\n\n```bash\nmake gendoc\n```\n\n## Roadmap\n\n- [x] Add create command\n  - [x] Add create acl\n- [x] Add update command\n  - [x] Add update broker-config\n  - [x] Add update cluster-config\n  - [x] Add update topic-config\n- [x] Add delete command\n  - [x] Add delete acl\n  - [x] Add delete topic\n- [ ] Add describe command\n  - [ ] Add describe topic (75%)\n  - [ ] Add describe cluster\n  - [ ] Add describe consumer-group\n- [ ] Add \"Consume records\" command\n- [ ] Add \"Produce records\" command\n- [ ] Add get broker tasks command\n\n## Build\n\n\u003e Output binary will be copied to repo/bin directory\n\nBuild and copy `kafkactl` into the `bin` directory\n\n```bash\nmake genbin\n```\n\nOr build for another platform\n\n```bash\n# macOS with Apple Silicon\nmake genbin GOOS=darwin GOARCH=arm64\n```\n\n## Development\n\n\u003e This requires the docker engine to be running and docker-compose installed\n\nStart a local Kafka cluster + Kafka Rest Proxy\n\n```bash\nmake dev-cluster-start\n```\n\nTail the logs of the local Kafka Rest Proxy\n\n```bash\nmake dev-cluster-logs\n```\n\nStop a local Kafka cluster + Kafka Rest Proxy\n\n```bash\nmake dev-cluster-stop\n```\n\nDestroy the local Kafka cluster + Kafka Rest Proxy\n\n```bash\nmake dev-cluster-down\n```\n\n## Examples\n\nList brokers\n\n```bash\n$ kafkactl get brokers\nBROKER-ID   HOST          PARTITION-REPLICAS-COUNT\n1           kafka0:9091   50\n2           kafka1:9092   50\n```\n\nList topics\n\n```bash\n$ kafkactl get topics\nTOPIC-NAME   REPLICATION-FACTOR   PARTITIONS-COUNT   CONFIGS                                     IS-INTERNAL\nzeplin       2                    1                  retention.bytes=1000000,retention.ms=1000   false\nzeplin2      2                    10                 -                                           false\nzeplin3      2                    1                  -                                           false\n```\n\nCreate topic\n\n```bash\n$ kafkactl create topic zeplin4 --partitions-count 5\nTopic zeplin4 created successfully\n```\n\nUpdate topic configuration\n\n```bash\n$ kafkactl update topic-config zeplin2 retention.ms=1000\nConfigs of topic with name 'zeplin2' updated/reset successfully\n```\n\nDescribe topic\n\n```bash\n$ kafkactl describe topic zeplin2\nTopic:                    zeplin2\nReplicationFactor:        2\nPartitionsCount:          10\nIsInternal:               false\nConfigs:                  retention.bytes=123456\n                          retention.ms=1000\n\nConsumer Groups:\n  CONSUMER-GROUP-ID   STATE    PARTITION-ASSIGNOR   COORDINATOR-BROKER   CONSUMERS-COUNT\n  test-zeplin2-5      STABLE   range                2                    1\n  test-zeplin2-4      STABLE   range                1                    1\n  test-zeplin2-3      STABLE   range                2                    1\n  test-zeplin2-2      STABLE   range                1                    1\n  test-zeplin2-9      STABLE   range                2                    1\n  test-zeplin2-8      STABLE   range                1                    1\n  test-zeplin2-7      STABLE   range                2                    1\n  test-zeplin2-6      STABLE   range                1                    1\n  test-zeplin2-10     STABLE   range                2                    1\n  test-zeplin2-1      STABLE   range                2                    1\n\nPartitions:\n  PARTITION-ID   LEADER-BROKER   REPLICAS   ISR\n  0              1               1,2        1,2\n  1              2               2,1        2,1\n  2              1               1,2        1,2\n  3              2               2,1        2,1\n  4              1               1,2        1,2\n  5              2               2,1        2,1\n  6              1               1,2        1,2\n  7              2               2,1        2,1\n  8              1               1,2        1,2\n  9              2               2,1        2,1\n```\n\nGet consumer lag\n\n```bash\n$ kafkactl get consumer-lag test-zeplin2\nCONSUMER-GROUP-ID   CONSUMER-ID                                                    TOPIC-NAME   PARTITION-ID   CURRENT-OFFSET   LOG-END-OFFSET   LAG\ntest-zeplin2        consumer-test-zeplin2-1-0892494d-1293-4839-b3f3-9e023ce0f5a0   zeplin2      0              390              390              0\ntest-zeplin2        consumer-test-zeplin2-1-157e9802-3873-4eae-ab71-c182a62fa20c   zeplin2      1              183              183              0\ntest-zeplin2        consumer-test-zeplin2-1-1a3dbb73-f884-4f9f-988b-8e6a1fa10861   zeplin2      2              817              817              0\ntest-zeplin2        consumer-test-zeplin2-1-1d66c521-330c-4c6d-8ef9-818a8f15c7ec   zeplin2      3              0                0                0\ntest-zeplin2        consumer-test-zeplin2-1-2e508a86-5f35-48fd-accd-ea2a0c721193   zeplin2      4              0                0                0\ntest-zeplin2        consumer-test-zeplin2-1-3f44f9fb-45ed-4209-827f-c290c256f2b8   zeplin2      5              0                0                0\ntest-zeplin2        consumer-test-zeplin2-1-5ed34339-82e0-4584-92af-b968ce257104   zeplin2      6              0                0                0\ntest-zeplin2        consumer-test-zeplin2-1-6c1fe913-e8b1-4d6b-9bab-78119490c1fa   zeplin2      7              497              497              0\ntest-zeplin2        consumer-test-zeplin2-1-8ab2fa12-e3fc-4b4c-88e4-163e59da1e53   zeplin2      8              113              113              0\ntest-zeplin2        consumer-test-zeplin2-1-b38b14b7-3c4c-44ff-89ec-d8b1709a78c1   zeplin2      9              0                0                0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevodev%2Fkafkactl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevodev%2Fkafkactl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevodev%2Fkafkactl/lists"}