# Connecting confluent CLI to confluent platform locally

**URL:** <https://forum.confluent.io/t/connecting-confluent-cli-to-confluent-platform-locally/9768>\
**Category:** Clients\
**Created:** [9 January 2024 12:51 UTC](https://forum.confluent.io/t/connecting-confluent-cli-to-confluent-platform-locally/9768 "2024-01-09T12:51:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://forum.confluent.io/u/krishna)\
**Post date:** [10 January 2024 10:37 UTC](https://forum.confluent.io/t/connecting-confluent-cli-to-confluent-platform-locally/9768/2 "2024-01-10T10:37:36Z")

</div>

Hi @smitp33,  
You can use the same cli commands with docker containers as well.  
Checkout the on-premises commands for confluent cli: [link](https://docs.confluent.io/confluent-cli/current/command-reference/kafka/index.html?_ga=2.166980086.910389858.1704696889-185514726.1665561131&_gac=1.58428888.1704792549.CjwKCAiA-vOsBhAAEiwAIWR0TQW2FxoAdeESssoBxdY-YsLhWeidqaiDr_dANVJNA777l1eVjEvuQhoCpLYQAvD_BwE)

For example

- I am making use of [this](https://github.com/confluentinc/cp-all-in-one/blob/dd2fb0224966ad7a5c58bd5aa48dfc16782be907/cp-all-in-one-kraft/docker-compose.yml) docker compose
- Now to create topic: `confluent kafka topic create "test-topic" --url http://localhost:8082 --no-authentication`  
Similarly other commands can be used.

---

_[View the full topic](https://forum.confluent.io/t/connecting-confluent-cli-to-confluent-platform-locally/9768)._
