supabase / dbdev

Database Package Registry for Postgres
https://database.dev/
Apache License 2.0
370 stars 19 forks source link

Add ability to publish packages with the CLI #87

Closed imor closed 1 year ago

imor commented 1 year ago

This PR adds support for publishing packages to database.dev using the CLI.

Before publishing a package, the user needs to login to database.dev. The complete flow is like this:

  1. User creates & copies a new token as explained in this PR.
  2. User issues dbdev login command and pastes the copied token.
  3. User issues dbdev publish --path <path to extension folder> command to publish a package.

Behind the scenes, the dbdev login command saves the token in a file (more secure methods of storage to be added) in user's profile. When the user issues the dbdev publish command, the CLI uses the saved token to generate a short lived JWT token which it uses to authenticate when calling the APIs to publish the extension.

Tasks

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dbdev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2023 0:03am