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

# squarecloud db credentials

> Square Cloud 上のデータベースの TLS 証明書と認証情報を管理します。

データベースの TLS 証明書を表示するか、パスワードまたは証明書をローテーションします。どちらのサブコマンドでも、データベース ID は省略可能です。CLI は引数から解決し、指定がない場合はインタラクティブな選択メニューにフォールバックします。

```bash theme={null}
squarecloud db credentials certificate
# Uses an interactive picker to choose the database, then prints its TLS certificate.
```

```bash theme={null}
squarecloud db credentials certificate <dbID>
# Prints the TLS certificate of a specific database.
```

```bash theme={null}
squarecloud db credentials reset password <dbID>
# Rotates the database password and prints the new one.
```

```bash theme={null}
squarecloud db credentials reset certificate <dbID>
# Rotates the TLS certificate.
```

`reset` サブコマンドは破壊的な操作です。パスワードや証明書をローテーションすると、それを使用している既存の接続の古い情報は即座に無効になります。実行前に `y/N` の確認を求めます。確認をスキップするには `-y`/`--yes` を指定してください。

```bash theme={null}
squarecloud db credentials reset password <dbID> -y
# Rotates the password without asking for confirmation.
```

このコマンドの詳細については `squarecloud db credentials --help` を使用してください。
