--- title: "Creating and managing groups using the CLI" slug: "creating-and-managing-groups-using-the-cli-2" updated: 2026-08-25T21:17:55Z published: 2026-08-25T21:17:55Z canonical: "docs.trellix.com/creating-and-managing-groups-using-the-cli-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Creating and managing groups using the CLI Use the commands in this section to create and manage appliance groups. To add a new group: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Add a new group: ``` hostname (config) # cmc group ``` 3. (Optional) Add a comment about the group: ``` hostname (config) # cmc group comment "" ``` where` commentText `must be enclosed in double quotation marks. 4. Verify your changes: ``` hostname (config) # show cmc groups ``` 5. Save your changes: ``` hostname (config) # write memory ``` To rename a group: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Rename the group: ``` hostname (config) # cmc group rename ``` 3. Verify your change: ``` hostname (config) # show cmc groups ``` 4. Save your change: ``` hostname (config) # write memory ``` To delete a comment: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Delete the comment: ``` hostname (config) # no cmc group comment ``` 3. Verify your change: ``` hostname (config) # show cmc groups ``` 4. Save your change: ``` hostname (config) # write memory ``` To delete a group: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Delete the group: ``` hostname (config) # no cmc group groupName ``` 3. Verify your change: ``` hostname (config) # show cmc groups ``` 4. Save your change: ``` hostname (config) # write memory ``` ### Example This example creates a "Milan" appliance group, deletes the "Sydney" group, renames the "Milan" group to "Venice," and adds a comment to the group. ``` hostname (config) # cmc group Milan hostname (config) # show cmc groups Group Milan   Comment:   No members. Group Sydney   Comment:   Appliances:       NX-01 Group sysgroup.Email_MPS   Comment:             System Group: eMPS   Appliances:       EX-02 . . . hostname (config) # no cmc group Sydney hostname (config) # show cmc groups Sydney % Unknown group. hostname (config) # cmc group Milan rename Venice hostname (config) # cmc group Venice comment "Italian region appliances" hostname (config) # show cmc groups Venice Group Venice     Comment: Italian region appliances   No members. ``` :