Cheat Sheet for confluence cli
Confluent CLI
Logar e manter a sessão ativa do CLI
confluent login --save
Listar os ambientes
confluent environment list
Selecionar um ambiente
confluent environment use **ID**
Listar os Clusters do ambiente
confluent kafka cluster list
Selecionar um cluster
confluent kafka cluster use **ID**
Listar tópicos
confluent kafka topic list
Criar tópicos (Por default é criado com 6 partições)
confluent kafka topic create test-topic
Para setar o número de partições devemos usar
confluent kafka topic create topic_nathan — partitions 1
Excluir tópicos
confluent kafka topic delete test-topic
Alterar retenção
confluent kafka topic update test-topic --config "retention.ms=172800000”
Exibir detalhes de um tópico
confluent kafka topic describe test-topic