rpk topic list
List topics, optionally listing specific topics. This command lists all topics that you have access to by default.
If specifying topics or regular expressions, this command can be used to know exactly what topics you would delete if using the same input to the delete command.
Alternatively, you can request specific topics to list, which can be used to check authentication errors (do you not have access to a topic you were expecting to see?), or to list all topics that match regular expressions.
The --regex or -r flag opts into parsing the input topics as regular expressions and listing any non-internal topic that matches any of expressions. The input expressions are wrapped with ^ and $ so that the expression must match the whole topic name.
Regular expressions cannot be used to match internal topics. Specifying both -i and -r will exit with failure.
|
Flags
| Value | Type | Description |
|---|---|---|
|
bool |
Print per-partition information for topics. |
|
string |
Output format ( |
|
bool |
Include internal topics (those starting with |
|
bool |
Filter topics using regular expressions. Expressions are automatically anchored with |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |