Adding a command and command template in the end application
When a command is added in the end application, it also creates a command template in the model on which the instance is based. Consequently, all instances associated with that model will automatically include the newly added command.
All Command operations require necessary permissions. Refer User Profiles document for more details.
To add a command in the end application,
Access the End Application.
Select Devices > Devices in the left pane.You can select Assets to add a command to an asset or Location to add a command to a location.
Click the name of the device you want to add the command to. This opens the device's information page. For this illustration, the device: Smart Fan is considered.
Click Actions > Command Configuration.
Click Add Command. This will open the add new command template form.

Provide the required values in the corresponding fields. For this illustration, a command: Fan Speed is used.
Click Create.
A new command called Fan Speed will be added to the specified instance, and a Command template will be added to the model based on which the instance was created.