--- title: "Creating and managing profiles using the CLI" slug: "creating-and-managing-profiles-using-the-cli-2" updated: 2026-08-25T21:18:10Z published: 2026-08-25T21:18:10Z canonical: "docs.trellix.com/creating-and-managing-profiles-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 profiles using the CLI Use the commands in this section to create and manage command profiles. To create a profile: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Create the profile: ``` hostname (config) # cmc profile ``` 3. (Optional) Add a comment about the profile: ``` hostname (config) # cmc profile comment "" ``` where` comment `must be enclosed in double quotation marks. 4. Verify your change: ``` hostname (config) # show cmc profiles ``` 5. Save your changes: ``` hostname (config) # write memory ``` To rename a profile: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Rename the profile: ``` hostname (config) # cmc profile rename ``` 3. Verify your change: ``` hostname (config) # show cmc profiles ``` 4. Save your change: ``` hostname (config) # write memory ``` To remove a comment: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Remove the comment: ``` hostname (config) # no cmc profile comment ``` 3. Verify your change: ``` hostname (config) # show cmc profiles ``` 4. Save your change: ``` hostname (config) # write memory ``` To delete a profile: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Delete the profile: ``` hostname (config) # no cmc profile ``` 3. Verify that the profile was deleted: ``` hostname (config) # show cmc profiles ``` 4. Save your change: ``` hostname (config) # write memory ``` ### Example This example creates an "acctmgt" profile with a comment and deletes the "PswdPolicy" profile. ``` hostname (config) # cmc profile acctmgt hostname (config) # cmc profile acctmgt comment "Adds operator user account." hostname (config) # no cmc profile PswdPolicy hostname (config) # show cmc profiles Profile acctmgt   Comment: Adds operator user account.   Commands:       No commands.     ... ``` :