> ## 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

> Manages the TLS certificate and credentials of your database on Square Cloud.

Prints the TLS certificate or rotates the password/certificate of a database. In both subcommands, the database ID is optional: the CLI resolves it from the argument, then falls back to an interactive picker.

```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.
```

The `reset` subcommand is destructive: rotating a password or certificate immediately invalidates the old one for any connection still using it. It asks for `y/N` confirmation before proceeding; pass `-y`/`--yes` to skip the prompt.

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

Use `squarecloud db credentials --help` for more information about this command.
