Supabase CLI
The Supabase CLI provides tools to develop your project locally and deploy to the Supabase Platform. You can also use the CLI to manage your Supabase projects, handle database migrations and CI/CD workflows, and generate types directly from your database schema.
Installation#
Install the CLI as dev dependency via npm:
_10npm install supabase --save-dev
Run the CLI by prefixing each command with npx
(only applicable when installing through npm
):
_10npx supabase <command>
Updates#
When a new version is released, you can update the CLI using the same methods.
_10npm update supabase --save-dev
If you have any Supabase containers running locally, remember to restart them after upgrading to use the new features.
_10npx supabase stop --no-backup_10npx supabase start