# CLI resource commands

This page lists the resource commands from CLI source commit `961a1004b384eadbb39fa6acdb7dc55826897603`. Check `ohauthcat <group> --help` in your own build before relying on a flag.

## How they work

- Every command uses the selected profile's credentials or `OHAUTHCAT_API_KEY`, and prints a table, or JSON with the global `--json` flag.
- Commands that send a body take `--data '<json object>'` or `--data-file <path>` (`-` reads stdin).
- List commands take `--limit` (1 to 100) and `--after <cursor>`; when more results exist, the CLI prints the `--after` value to use.
- Time filters take RFC 3339 times; `--from` must be before `--to`.
- Every POST carries an `Idempotency-Key`, and rate-limited calls are retried twice.
- Errors show the [error code](/errors/) only, never raw server text.

## Commands

| Group                         | Subcommands                                                                                                                                                       | Docs                                                                           |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| `ohauthcat users`             | `list` (`--email`, `--organization`), `get`, `create`, `update`, `delete`, `factors`, `identities`, `sessions list`, `sessions revoke`, `sessions revoke-all`     | [User management](/user-management/)                                           |
| `ohauthcat invites`           | `list` (`--organization`), `create`, `revoke`                                                                                                                     | [Invitations](/user-management/organizations-and-invites/)                     |
| `ohauthcat orgs`              | `list` (`--domain`, `--external-id`), `get`, `create`, `update`, `delete`                                                                                         | [Concepts](/get-started/concepts/)                                             |
| `ohauthcat roles`             | `list` (`--organization`), `get`, `create`, `update`, `delete`                                                                                                    | [Authorization](/authorization/)                                               |
| `ohauthcat permissions`       | `list`, `get`, `create`, `update`, `delete`                                                                                                                       | [Authorization](/authorization/)                                               |
| `ohauthcat m2m-clients`       | `list` (`--organization`), `get`, `create`, `update`, `revoke`, `rotate-secret`                                                                                   | [Machine-to-machine](/authorization/machine-to-machine/)                       |
| `ohauthcat oauth-apps`        | `list`, `get`, `create`, `update`, `delete`, `grants list` (`--user`, `--client`, `--organization`), `grants revoke`                                              | [OAuth provider](/oauth-provider/)                                             |
| `ohauthcat mcp-auth`          | `resources list`, `resources get`, `resources create`, `resources update`, `resources delete`, `resources metadata`, `scopes list`, `scopes set`, `scopes delete` | [Protect your MCP server](/oauth-provider/mcp/)                                |
| `ohauthcat bot-protection`    | `get`, `set`, `detections` (`--flow`, `--action`, `--since`, `--until`)                                                                                           | [Bot protection](/bot-protection/)                                             |
| `ohauthcat sign-in-hooks`     | `list`, `get`, `create`, `update`, `delete`, `rotate-secret`                                                                                                      | [Sign-in hooks](/sso/hooks/)                                                   |
| `ohauthcat risk-rules`        | `get`, `set`, `delete`                                                                                                                                            | [Risk signals](/signals/risk/)                                                 |
| `ohauthcat slo`               | `get <connection>`, `set <connection>`                                                                                                                            | [Single logout](/sso/single-logout/)                                           |
| `ohauthcat trusted-issuers`   | `list`, `create`, `delete`                                                                                                                                        | [Trusted tokens](/sso/trusted-tokens/)                                         |
| `ohauthcat sign-ins`          | `list` (`--from`, `--to`, `--status`, `--email`, `--connection`, `--organization`)                                                                                | [Sign-in history](/sso/sign-in-history/)                                       |
| `ohauthcat email`             | `test`                                                                                                                                                            | [Email notices](/hosted-portal/email-branding/)                                |
| `ohauthcat audit-logs`        | `emit`, `list`, `get`, `export`, `schemas list`, `schemas get`, `schemas create`                                                                                  | [Audit Logs](/audit-logs/)                                                     |
| `ohauthcat flags`             | `list`, `get`, `create`, `update`, `delete`, `evaluate`                                                                                                           | [Feature Flags](/feature-flags/)                                               |
| `ohauthcat pipes connections` | `list` (`--organization`, `--user`, `--provider`), `get`, `revoke`                                                                                                | [Pipes](/pipes/)                                                               |
| `ohauthcat vault`             | `encrypt`, `decrypt`, `keys list`, `keys create`, `keys rotate`                                                                                                   | [Vault](/vault/)                                                               |
| `ohauthcat byok keys`         | `list`, `get`                                                                                                                                                     | [BYOK](/byok/)                                                                 |
| `ohauthcat api-keys`          | `list <org>`, `get <org> <key>`, `create <org>`, `roll <org> <key>`, `revoke <org> <key>`, `secrets list`, `secrets create`, `secrets revoke`                     | [Organization API keys](/authorization/organization-api-keys/)                 |
| `ohauthcat allowed-intents`   | `get <org>`, `set <org>`                                                                                                                                          | [Organization API keys](/authorization/organization-api-keys/#allowed-intents) |
| `ohauthcat ssf streams`       | `list`, `get`, `create`, `update`, `delete`, `verify` (optional `--data` with a `state`)                                                                          | [Access signals](/signals/)                                                    |

`audit-logs list` and `audit-logs export` filter with `--organization`, `--action`, `--actor`, `--target`, `--from` and `--to`; `export` writes CSV, or JSON with `--format json`. `api-keys create`, `roll` and `secrets create` print the new secret once; store it straight away. `vault encrypt` takes `--organization`, `--key` and `--plaintext` or `--plaintext-file`; `vault decrypt` takes `--organization` and `--ciphertext`.
