Hard to tell which remote supabase is linked

オープン
#3,910 コメント 13 件 リアクション 11 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
postgresql, typescript
領域
cli, databases

調査の方向性

まず、supabase db info --linkedsupabase db reset --linkedsupabase db push --linked の CLI エントリーポイントを追跡し、次にリンクされたプロジェクトのメタデータがどのように取得されるかを調べます。指定されたコマンドまたは関連する確認プロンプトで、リンクされたインスタンスの URL と名前が明確に表示され、その表示された識別情報をカバーするテストがあれば完了です。

索引モデルが issue の本文から書いたものです。

説明

✨ Feature supabase/cli

Is your feature request related to a problem? Please describe.
When I run npx supabase db reset --linked I want to be sure I'm currently linked to my staging instance and not production. Otherwise I risk accidentally torching the wrong database.

Describe the solution you'd like
Add the command supabase db info --linked which prints the currently linked instance's URL and name.

Describe alternatives you've considered
I've used npx supabase link to relink the project (but for example I have 3 projects show up when I run that so just running that and aborting doesn't give me confidence in an answer).

I've also used npx supabase db push --linked to differentiate staging from production (when I expect a difference in which migrations have run on my instances).

Additional context
Maybe npx supabase db reset --linked should print the remote databases URL or name instead of just saying "Do you want to reset the remote database? [y/N]"

And ditto for npx supabase db push --linked

主要言語
TypeScript
スター
2.4k
フォーク
523
平均マージ
20時間 47分
マージ済み PR(30日)
243

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

supabase/cli のほかの issue

supabase/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。