# service-account

Operations with service accounts

## Usage

```bash
apolo service-account [OPTIONS] COMMAND [ARGS]...
```

Operations with service accounts.

**Commands:**

| Usage               | Description                              |
| ------------------- | ---------------------------------------- |
| [*create*](#create) | Create a service account                 |
| [*get*](#get)       | Get service account SERVICE\_ACCOUNT     |
| [*ls*](#ls)         | List service accounts                    |
| [*rm*](#rm)         | Remove service accounts SERVICE\_ACCOUNT |

### create

Create a service account

#### Usage

```bash
apolo service-account create [OPTIONS]
```

Create a service account.

#### Options

| Name                        | Description                                                                     |
| --------------------------- | ------------------------------------------------------------------------------- |
| *--help*                    | Show this message and exit.                                                     |
| *--default-cluster CLUSTER* | Service account default cluster. Current cluster will be used if not specified  |
| *--default-org ORG*         | Service account default organization. Current org will be used if not specified |
| *--default-project PROJECT* | Service account default project. Current project will be used if not specified  |
| *--name NAME*               | Optional service account name                                                   |

### get

Get service account SERVICE\_ACCOUNT

#### Usage

```bash
apolo service-account get [OPTIONS] SERVICE_ACCOUNT
```

Get service account `SERVICE`\_`ACCOUNT`.

#### Options

| Name     | Description                 |
| -------- | --------------------------- |
| *--help* | Show this message and exit. |

### ls

List service accounts

#### Usage

```bash
apolo service-account ls [OPTIONS]
```

List service accounts.

#### Options

| Name     | Description                 |
| -------- | --------------------------- |
| *--help* | Show this message and exit. |

### rm

Remove service accounts SERVICE\_ACCOUNT

#### Usage

```bash
apolo service-account rm [OPTIONS] SERVICE_ACCOUNTS...
```

Remove service accounts `SERVICE`\_`ACCOUNT`.

#### Options

| Name     | Description                 |
| -------- | --------------------------- |
| *--help* | Show this message and exit. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apolo.us/index/apolo-cli/commands/service-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
