> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# occtoo applications

> Manage applications: the client id and secret a program signs in with, and what it may reach

An application is a client id and secret that a program signs in with, together with a list of what it may reach. `occtoo apps` is short for `occtoo applications`.

To sign the CLI itself in as an application, see [Authentication](https://docs.occtoo.com/cli/authentication.md#use-an-application-in-ci).

## List and show

```bash theme={null}
occtoo applications list --tag web
occtoo applications show <ID>
```

`show` prints an application and what it has access to.

| Flag (`list`) | Description |
| - | - |
| `--name <NAME>` | Only applications whose name contains this text |
| `--tag <TAG>` | Only applications with this tag. Repeat to require several tags |
| `--limit <LIMIT>` | Maximum number to return. Default `100` |

## See what you can grant

```bash theme={null}
occtoo applications access
```

Lists what an application can be given access to. Each item has a key and a type.

## Create an application

```bash theme={null}
occtoo applications create
echo '{"name": "Storefront", "scopeKeys": ["..."]}' | occtoo applications create --output json
```

In a terminal, the CLI asks for each value. Otherwise, pass JSON. Only `name` is required:

```json theme={null}
{
  "name": "Storefront",
  "description": "...",
  "tags": ["web"],
  "scopeKeys": ["..."],
  "resourceSelectors": ["..."],
  "apiSelectors": ["..."]
}
```

Put each key from `occtoo applications access` in the list that matches its type.

> [!WARNING]
>
> The CLI prints the client secret once, when it creates the application. You can't read it again, so store it somewhere safe right away.

## Edit an application

```bash theme={null}
occtoo applications edit <ID>
echo '{"tags": ["web", "eu"]}' | occtoo applications edit <ID>
```

Every field is optional. A field you leave out stays as it is, a list you give replaces the current list, and `"description": null` removes the description.

## Delete an application

```bash theme={null}
occtoo applications delete <ID> --yes
```

The client id and secret stop working.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.