Docs Self-Managed Reference rpk Commands rpk topic rpk topic Create, delete, produce to and consume from Redpanda topics. Usage rpk topic [flags] [command] Flags Value Type Description -h, --help - Help for topic. --config string Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD, and /etc/redpanda/redpanda.yaml. -X, --config-opt stringArray Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terser detail. --profile string Profile to use. See rpk profile for more details. -v, --verbose - Enable verbose logging. See also Create a topic Produce records to a topic List topics Consume records from a topic Delete a topic Describe a topic and its configuration Describe the storage status of a topic Modify topic configuration Trim existing records in a topic Add partitions to an existing topic Back to top × Simple online edits For simple changes, such as fixing a typo, you can edit the content directly on GitHub. Edit on GitHub Or, open an issue to let us know about something that you want us to change. Open an issue Contribution guide For extensive content updates, or if you prefer to work locally, read our contribution guide . Was this helpful? thumb_up thumb_down group Ask in the community mail Share your feedback group_add Make a contribution rpk security user list rpk topic add-partitions