メインコンテンツへスキップ
データベースの TLS 証明書を表示するか、パスワードまたは証明書をローテーションします。どちらのサブコマンドでも、データベース ID は省略可能です。CLI は引数から解決し、指定がない場合はインタラクティブな選択メニューにフォールバックします。
squarecloud db credentials certificate
# Uses an interactive picker to choose the database, then prints its TLS certificate.
squarecloud db credentials certificate <dbID>
# Prints the TLS certificate of a specific database.
squarecloud db credentials reset password <dbID>
# Rotates the database password and prints the new one.
squarecloud db credentials reset certificate <dbID>
# Rotates the TLS certificate.
reset サブコマンドは破壊的な操作です。パスワードや証明書をローテーションすると、それを使用している既存の接続の古い情報は即座に無効になります。実行前に y/N の確認を求めます。確認をスキップするには -y/--yes を指定してください。
squarecloud db credentials reset password <dbID> -y
# Rotates the password without asking for confirmation.
このコマンドの詳細については squarecloud db credentials --help を使用してください。