# awx cli add host to group

**URL:** <https://forum.ansible.com/t/awx-cli-add-host-to-group/32596>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 3, 2020, 8:48am UTC](https://forum.ansible.com/t/awx-cli-add-host-to-group/32596 "2020-04-03T08:48:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bursuc\_Sergiu](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@Bursuc\_Sergiu](https://forum.ansible.com/u/Bursuc_Sergiu)\
**Post date:** [April 3, 2020, 8:48am UTC](https://forum.ansible.com/t/awx-cli-add-host-to-group/32596/1 "2020-04-03T08:48:55Z")

</div>

Hi,

I am trying to automate the additional of multiple hosts to my AWX inventory. I can create the hosts with all necessary variables but I can’t see how I can add them to their particular group using the awx cli.

Is it possible to add a hot to a group using awx cli? How do I do that?

Also is it possible to just pass a YAML/JSON file with all the necessary properties to the “awx hosts create” command?

Please help. Thanks in advance.
