# Cannot fetch messages from topic from CMD based CLI

**URL:** <https://forum.confluent.io/t/cannot-fetch-messages-from-topic-from-cmd-based-cli/11464>\
**Category:** Confluent Cloud\
**Created:** [13 September 2024 14:54 UTC](https://forum.confluent.io/t/cannot-fetch-messages-from-topic-from-cmd-based-cli/11464 "2024-09-13T14:54:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumikghosh](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@soumikghosh](https://forum.confluent.io/u/soumikghosh)\
**Post date:** [13 September 2024 14:54 UTC](https://forum.confluent.io/t/cannot-fetch-messages-from-topic-from-cmd-based-cli/11464/1 "2024-09-13T14:54:43Z")

</div>

Hi,

I am very much new to Confluent kafka. I setup CLI using CMD in my windows system, i logged in, setup the env and cluster, created user account based and service account based api key using CLI and confluent console. i ran the command “confluent api-key use {apikey} --resource {cluster id}”. and then i ran confluent kafka topic consume --from-beginning poems where poems is the name of my topic.  
I got error as “Error: failed to obtain topics from client: API key may not be provisioned yet”. I am not sure what wrong i did. Please help me on this. I am in middle of a demo and i am not able to proceed further.
