# CLI create client

**URL:** <https://community.hivemq.com/t/cli-create-client/1529>\
**Category:** HiveMQ Cloud\
**Created:** [October 14, 2022, 11:05pm UTC](https://community.hivemq.com/t/cli-create-client/1529 "2022-10-14T23:05:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcrocker](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@lcrocker](https://community.hivemq.com/u/lcrocker)\
**Post date:** [October 14, 2022, 11:05pm UTC](https://community.hivemq.com/t/cli-create-client/1529/1 "2022-10-14T23:05:50Z")

</div>

I signed up for a free account, created new clients with the console, and can use the CLI to publish/subscribe (and will use one of the language plugins for that in the future). All is well. But I can’t find any documentation on how to create new clients programmatically. The “mqtt” command has a “hivemq” subcommand that exports clients, but I see nothing in its docs about creating them. The REST API doc shows how to list clients, but nothing about creating them. There must be a way to create clients and credentials other than the GUI–a CLI, the API, a language binding, something–but I can’t find it.

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [October 28, 2022, 12:59pm UTC](https://community.hivemq.com/t/cli-create-client/1529/2 "2022-10-28T12:59:23Z")

</div>

Hi @lcrocker ,

Nice to see your interest in HiveMQ. Welcome to the community.

Are you referring to creating MQTT credentials in the HiveMQ Cloud (see screenshot)?

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/1X/60c3274d9e0156225a1205c77cf475ecf4880153.png)

What is the Use Case for creating the credentials programmatically? What HiveMQ Cloud subscription you have: Free, Pay as you go, Dedicated?

Tell us more!

Thanks,  
Dasha from HiveMQ team

---

<div class="post-metadata">

**Author:** ![lcrocker](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@lcrocker](https://community.hivemq.com/u/lcrocker)\
**Post date:** [October 28, 2022, 5:17pm UTC](https://community.hivemq.com/t/cli-create-client/1529/3 "2022-10-28T17:17:00Z")

</div>

Thanks for the reply. We just have a free account for now, but if we decide that HiveMQ will meet our needs we’ll upgrade to whatever we need. We are a company that makes gadgets. We’re not selling them one at a time; we’re hoping to sell thousands, so if we can’t automate the process of making credentials for them, we’ll have to find another solution. Google IoT made it easy: a script runs “gcloud iot devices create --public-key …”, then installs the private key on the device, and all’s well.

GUIs are fine for experimentation and development, but actual production requires automation.

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [October 31, 2022, 11:01am UTC](https://community.hivemq.com/t/cli-create-client/1529/4 "2022-10-31T11:01:26Z")

</div>

Thanks for the clarification @lcrocker ,

At the moment the only way to manage MQTT credentials in the HiveMQ cloud cluster is via the GUI.  
If you host a HiveMQ broker (Enterprise license) on your own (or subscribe to HiveMQ Cloud Dedicated), then you have more flexibility in managing MQTT client credentials, for example in an SQL database with [HiveMQ Enterprise Security Extension](https://www.hivemq.com/docs/ese/4.8/enterprise-security-extension/ese-intro.html.). More flexibility could potentially allow you to develop an automation as your use case requires. A ready to use solution for your use case does not exist (yet).

Kind regards,  
Dasha from HiveMQ
