# How to associate hosts to group with the new 'awx' Command Line Interface

**URL:** <https://forum.ansible.com/t/how-to-associate-hosts-to-group-with-the-new-awx-command-line-interface/32325>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 25, 2020, 3:49pm UTC](https://forum.ansible.com/t/how-to-associate-hosts-to-group-with-the-new-awx-command-line-interface/32325 "2020-02-25T15:49:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Big\_Daddy](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@Big\_Daddy](https://forum.ansible.com/u/Big_Daddy)\
**Post date:** [February 25, 2020, 3:49pm UTC](https://forum.ansible.com/t/how-to-associate-hosts-to-group-with-the-new-awx-command-line-interface/32325/1 "2020-02-25T15:49:51Z")

</div>

‘tower-cli’ is the legacy command line tool for Ansible Tower.

‘tower-cli host’ can associate/disassociate a group to/from a host

[https://tower-cli.readthedocs.io/en/latest/api\_ref/resources/host.htm](https://tower-cli.readthedocs.io/en/latest/api_ref/resources/host.htm)l

But now tower-cli is no longer under active development. This tool is being phased out in favor of the new official AWX CLI.

awx is the new official command-line client for AWX and Red Hat Ansible Tower

[https://docs.ansible.com/ansible-tower/latest/html/towercli/index.html](https://docs.ansible.com/ansible-tower/latest/html/towercli/index.html)

the problem is that I have nowhere found an awx option allowing, like tower-cli, to associate a host with a group.

---

<div class="post-metadata">

**Author:** ![bianca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bianca/32/7233_2.png) [@bianca](https://forum.ansible.com/u/bianca)\
**Post date:** [February 26, 2020, 8:33pm UTC](https://forum.ansible.com/t/how-to-associate-hosts-to-group-with-the-new-awx-command-line-interface/32325/2 "2020-02-26T20:33:12Z")

</div>

An issue that addresses this exact problem has been filed here [https://github.com/ansible/awx/issues/6056](https://github.com/ansible/awx/issues/6056), so please keep an eye on it re: progress/solutions as we’re aware of this and it’s on the AWX “to-do list”!
