---
title: "Commands client"
slug: "commands-client"
abstract: "Use the Commands client to execute registered system commands, such as role updates or state assignments, using structured JSON arguments."
---
# Commands client

The Commands client can be used to execute commands that are publicly registered in Content Hub.

- Namespace: Command name
- `external.action`: `external.action`
- `m.security`: `applyuserrole`
- `m.security`: `updateuserroles`
- `m.asset`: `setmaster`
- `m.asset`: `tag.with.ai`
- `m.asset`: `complete.ai.tagging`
- `m.asset`: `discard.ai.tagging`
- `m.security`: `removeuserrole`
- `m.security`: `applyusergrouprole`
- `m.security`: `removeusergrouprole`
- `stateflow`: `assign.stateflow`
- `stateflow`: `apply.state`

To run an asynchronous command through the SDK:

```csharp
await MClient.Commands.ExecuteCommandAsync(<NAMESPACE>, <NAME>, <ARGS>);

```