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

# 账户和账单命令

> 账户、团队、密钥、积分和账单：从终端管理你的 Olostep 账户。

这些命令用于管理你的 Olostep 账户。它们作用于你登录的团队。更改内容的命令接受 `--preview` 和 `--dry-run`，因此你可以先检查它们。

`olostep whoami` 与 `olostep account info` 是相同的命令。

## 账户

### olostep account info

显示你登录的 Olostep 账户、你的团队、团队的计划及其积分余额。

```bash theme={null}
olostep account info [--json] [--fields a,b]
```

简写：`olostep whoami`。

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep whoami
olostep account info --json
```

## 团队

成员、角色和邀请。

### olostep team info

显示你的团队名称、支付方式、计划和积分余额。

```bash theme={null}
olostep team info [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team info
```

### olostep team members

列出你当前团队的成员、他们的角色和你的权限。

```bash theme={null}
olostep team members [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team members
olostep team members --json
```

### olostep team rename

重命名你当前的团队。

```bash theme={null}
olostep team rename (--team-name text) [--preview] [--json] [--fields a,b] [--dry-run]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--team-name` | 是 | 新的团队名称。 |

也接受 `--json`、`--fields`、`--dry-run` 和 `--preview`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team rename --team-name "Acme Research"
```

### olostep team invites

列出你团队的待处理邀请。

```bash theme={null}
olostep team invites [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team invites
```

### olostep team invite

通过电子邮件邀请一个人加入你的团队。Olostep 会向他们发送邀请。

```bash theme={null}
olostep team invite (--email text) [--preview] [--json] [--fields a,b] [--dry-run]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--email` | 是 | 被邀请者的电子邮件地址。 |

也接受 `--json`、`--fields`、`--dry-run` 和 `--preview`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team invite --email jane@example.com
```

### olostep team invite-revoke

撤销待处理的团队邀请。

> [!NOTE]
>
> 运行前会询问；当没有终端时传递 `--yes`。

```bash theme={null}
olostep team invite-revoke (--code text) [--preview] [--json] [--fields a,b] [--dry-run] [--yes]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--code` | 是 | 邀请列表中的邀请代码。 |

也接受 `--json`、`--fields`、`--dry-run`、`--preview` 和 `--yes`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team invites
olostep team invite-revoke --code <code>
```

### olostep team role

更改团队成员的角色。你不能更改所有者的角色、你自己的角色或最后一个管理员的角色。

> [!NOTE]
>
> 运行前会询问；当没有终端时传递 `--yes`。

```bash theme={null}
olostep team role (--email text) (--role admin|user) [--preview] [--json] [--fields a,b] [--dry-run] [--yes]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--email` | 是 | 成员的电子邮件地址。 |
| `--role` | 是 | 新角色。可选值：`admin`、`user`。 |

也接受 `--json`、`--fields`、`--dry-run`、`--preview` 和 `--yes`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team role --email jane@example.com --role admin
```

### olostep team switch-preview

预览加入你被邀请的团队，而不更改你的成员身份。

```bash theme={null}
olostep team switch-preview (--invite-code text) [--json] [--fields a,b]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--invite-code` | 是 | 邀请代码。 |

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team switch-preview --invite-code <invite_code>
```

### olostep team switch

接受邀请并切换到该团队。这可能会移除你对当前团队的访问权限。

> [!NOTE]
>
> 运行前会询问；当没有终端时传递 `--yes`。

```bash theme={null}
olostep team switch (--invite-code text) [--preview] [--json] [--fields a,b] [--dry-run] [--yes]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--invite-code` | 是 | 邀请代码。 |

也接受 `--json`、`--fields`、`--dry-run`、`--preview` 和 `--yes`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team switch-preview --invite-code <invite_code>
olostep team switch --invite-code <invite_code>
```

### olostep team domain-invite

显示为你的电子邮件域设置的任何团队邀请。

```bash theme={null}
olostep team domain-invite [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep team domain-invite
```

## 密钥

[Olostep API](https://docs.olostep.com/get-started/authentication.md) 的 API 密钥。CLI 本身不需要。

### olostep keys list

列出你的 API 密钥：名称、元数据和 `key_id`。从不打印密钥值。

```bash theme={null}
olostep keys list [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep keys list
```

### olostep keys create

创建一个 API 密钥。打印其元数据，而不是密钥。要查看密钥，请使用 `olostep keys reveal` 或仪表板。

```bash theme={null}
olostep keys create (--api-key-name text) [--preview] [--json] [--fields a,b] [--dry-run]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--api-key-name` | 是 | 描述性密钥名称。 |

也接受 `--json`、`--fields`、`--dry-run` 和 `--preview`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep keys create --api-key-name "production-server"
```

### olostep keys reveal

显示一个 API 密钥，或将其写入环境文件。密钥仅在交互式终端中显示。从编码代理或管道中，CLI 从不打印它：使用 `--write-env <file>` 将其保存为 `OLOSTEP_API_KEY`（或 `--var` 中的名称）。除非你传递 `--force`，否则文件必须被 git 忽略。

```bash theme={null}
olostep keys reveal [--write-env file] [--var value] [--force] <key>
```

**参数**

| 参数 | 描述 |
| - | - |
| `key` | 密钥名称或密钥列表中的 key\_id。 |

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--write-env` | 否 | 将密钥写入此环境文件而不是显示它。 |
| `--var` | 否 | `--write-env` 的变量名称。默认：`OLOSTEP_API_KEY`。 |
| `--force` | 否 | 即使 git 不忽略文件也写入。 |

```bash theme={null}
olostep keys reveal production-server
olostep keys reveal production-server --write-env .env
olostep keys reveal <key_id> --write-env .env.local --var OLOSTEP_KEY
```

### olostep keys revoke

通过其 `key_id` 撤销一个 API 密钥，绝不通过密钥本身。

> [!NOTE]
>
> 运行前会询问；当没有终端时传递 `--yes`。

```bash theme={null}
olostep keys revoke (--key-id text) [--preview] [--json] [--fields a,b] [--dry-run] [--yes]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--key-id` | 是 | 密钥列表中的不透明 key\_id。 |

也接受 `--json`、`--fields`、`--dry-run`、`--preview` 和 `--yes`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep keys list
olostep keys revoke --key-id <key_id>
```

### olostep keys manage

获取 Olostep 仪表板上 API 密钥页面的链接。

```bash theme={null}
olostep keys manage [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep keys manage
```

## 积分

你的余额、使用情况和奖励。参见[余额和账单](https://docs.olostep.com/balance-billing/balance-and-billing.md)。

### olostep credits rewards

列出你可以获得的积分奖励以及你是否已领取。

```bash theme={null}
olostep credits rewards [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep credits rewards
```

### olostep credits reward-claim

在你完成要求后领取奖励。

```bash theme={null}
olostep credits reward-claim (--reward slack_join|x_follow|linkedin_follow|youtube_follow|docs_visit) [--preview] [--json] [--fields a,b] [--dry-run]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--reward` | 是 | 完成的奖励。可选值：`slack_join`、`x_follow`、`linkedin_follow`、`youtube_follow`、`docs_visit`。 |

也接受 `--json`、`--fields`、`--dry-run` 和 `--preview`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep credits reward-claim --reward docs_visit
```

### olostep credits balance

显示你的团队积分余额、计划、使用状态和积分过期时间。

```bash theme={null}
olostep credits balance [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep credits balance
olostep credits balance --json
```

### olostep credits history

显示你的团队在 UTC 日期范围内的每日积分使用情况，包括缺失或部分数据的天数。默认为最近 30 天。

```bash theme={null}
olostep credits history [--start-date text] [--end-date text] [--json] [--fields a,b]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--start-date` | 否 | 包含的第一个 UTC 天，YYYY-MM-DD；默认为 end\_date 前 29 天。 |
| `--end-date` | 否 | 包含的最后一个 UTC 天，YYYY-MM-DD；默认为今天。不能是未来的日期。 |

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep credits history
olostep credits history --start-date 2026-10-01 --end-date 2026-10-28 --json
```

## 账单

计划、发票、支付方式和自动充值。付款总是在浏览器中进行；卡片详情从不通过 CLI。

### olostep billing cleanup-abandoned

作废未完成的发票并取消因放弃结账而留下的不完整订阅。具有破坏性。

> [!NOTE]
>
> 运行前会询问；当没有终端时传递 `--yes`。

```bash theme={null}
olostep billing cleanup-abandoned [--subscription-id text] [--preview] [--json] [--fields a,b] [--dry-run] [--yes]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--subscription-id` | 否 | 特定的不完整订阅，或省略以获取符合条件的放弃购买。 |

也接受 `--json`、`--fields`、`--dry-run`、`--preview` 和 `--yes`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing cleanup-abandoned --preview
```

### olostep billing subscription

显示可用的订阅和你的活动订阅。

```bash theme={null}
olostep billing subscription [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing subscription
```

### olostep billing plans

列出你的账户可用的订阅计划。

```bash theme={null}
olostep billing plans [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing plans
```

### olostep billing topups

列出你可以购买的积分充值，以某种货币。

```bash theme={null}
olostep billing topups [--currency text] [--json] [--fields a,b]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--currency` | 否 | 三字母货币代码，例如 `USD`。 |

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing topups --currency USD
```

### olostep billing invoices

列出你团队的发票。

```bash theme={null}
olostep billing invoices [--limit integer] [--json] [--fields a,b]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--limit` | 否 | 每页的发票数量。 |

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing invoices --limit 10
```

### olostep billing auto-refill

显示你的自动充值设置和保存的支付方式。

```bash theme={null}
olostep billing auto-refill [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing auto-refill
```

### olostep billing auto-refill-update

打开或关闭自动充值，或更改何时以及如何购买积分。

```bash theme={null}
olostep billing auto-refill-update (--enable true|false) [--threshold integer] [--price-id text] [--payment-method-id text] [--preview] [--json] [--fields a,b] [--dry-run]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--enable` | 是 | 启用自动充值。 |
| `--threshold` | 否 | 充值的积分阈值。 |
| `--price-id` | 否 | 充值价格 id。 |
| `--payment-method-id` | 否 | 保存的支付方式 id。 |

也接受 `--json`、`--fields`、`--dry-run` 和 `--preview`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing auto-refill-update --enable true --threshold 1000
olostep billing auto-refill-update --enable false
```

### olostep billing checkout

开始一个付费计划或充值的结账。你在浏览器中付款。`SUB_BASE` 是免费计划，不是结账选项。

```bash theme={null}
olostep billing checkout (--plan text) [--preview] [--json] [--fields a,b] [--dry-run]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--plan` | 是 | 付费计划或充值价格 id，来自 `billing plans` 或 `billing topups`，例如 `SUB_STARTER`。 |

也接受 `--json`、`--fields`、`--dry-run` 和 `--preview`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing plans
olostep billing checkout --plan SUB_STARTER
```

### olostep billing cancel

取消你的活动订阅。

> [!NOTE]
>
> 运行前会询问；当没有终端时传递 `--yes`。

```bash theme={null}
olostep billing cancel [--preview] [--json] [--fields a,b] [--dry-run] [--yes]
```

也接受 `--json`、`--fields`、`--dry-run`、`--preview` 和 `--yes`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing cancel --preview
olostep billing cancel
```

### olostep billing portal

获取你的账单门户的链接。

```bash theme={null}
olostep billing portal [--preview] [--json] [--fields a,b] [--dry-run]
```

也接受 `--json`、`--fields`、`--dry-run` 和 `--preview`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing portal
```

### olostep billing payment-default

将保存的支付方式设为团队的默认方式。

```bash theme={null}
olostep billing payment-default (--payment-method-id text) [--preview] [--json] [--fields a,b] [--dry-run]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--payment-method-id` | 是 | 保存的支付方式 id。 |

也接受 `--json`、`--fields`、`--dry-run` 和 `--preview`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing auto-refill
olostep billing payment-default --payment-method-id <payment_method_id>
```

### olostep billing payment-remove

移除保存的支付方式。你可能无法移除自动充值使用的支付方式。

> [!NOTE]
>
> 运行前会询问；当没有终端时传递 `--yes`。

```bash theme={null}
olostep billing payment-remove (--payment-method-id text) [--preview] [--json] [--fields a,b] [--dry-run] [--yes]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--payment-method-id` | 是 | 保存的支付方式 id。 |

也接受 `--json`、`--fields`、`--dry-run`、`--preview` 和 `--yes`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing payment-remove --payment-method-id <payment_method_id>
```

### olostep billing payment-add

获取添加卡片到仪表板的链接。卡片详情从不通过 CLI。

```bash theme={null}
olostep billing payment-add [--json] [--fields a,b]
```

也接受 `--json` 和 `--fields`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing payment-add
```

### olostep billing pending-cancel

取消因放弃结账而留下的不完整订阅。

> [!NOTE]
>
> 运行前会询问；当没有终端时传递 `--yes`。

```bash theme={null}
olostep billing pending-cancel (--subscription-id text) [--preview] [--json] [--fields a,b] [--dry-run] [--yes]
```

**标志**

| 标志 | 必需 | 描述 |
| - | - | - |
| `--subscription-id` | 是 | 不完整的订阅 id。 |

也接受 `--json`、`--fields`、`--dry-run`、`--preview` 和 `--yes`。参见[全局标志](https://docs.olostep.com/cli/usage.md#global-flags)。

```bash theme={null}
olostep billing pending-cancel --subscription-id <subscription_id>
```


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