---
url: https://docs.mochiexec.io/reference/cli/mochi_trust_set.md
description: Trust or restrict a workspace
---

# mochi trust set

Trust or restrict a workspace

```shell
mochi trust set <workspace> trusted|restricted [flags]
```

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-h, --help` |  | help for set |
| `-o, --output` | `string` | Output format: text or json (default "text") |

## Options inherited from parent commands

| Flag | Type | Description |
|------|------|-------------|
| `-L, --log-level` | `string` | Log verbosity level (debug, info, fatal) (default "info") |
| `--sync` |  | Sync flow cache and workspaces |

## See also

* [mochi trust](mochi_trust.md) — Manage which workspaces can run tasks without asking
