Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Move CLI installation to /docs/guides

dannykng2f5dbc77b9c2
diff --git a/apps/reference/_cli/installing-and-updating.mdx b/apps/reference/_cli/installing-and-updating.mdx
deleted file mode 100644
index 4585fd0d0b5..00000000000
--- a/apps/reference/_cli/installing-and-updating.mdx
+++ /dev/null
@@ -1,70 +0,0 @@
----
-id: installing-and-updating
----
-
-# Installing and Updating
-
-## macOS
-
-### Installing
-
-Available via [Homebrew](https://brew.sh). To install:
-
-```sh
-brew install supabase/tap/supabase
-```
-
-### Upgrading
-
-To upgrade:
-
-```sh
-brew upgrade supabase
-```
-
-## Windows
-
-### Installing
-
-Available via [Scoop](https://scoop.sh). To install:
-
-```powershell
-scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
-scoop install supabase
-```
-
-### Upgrading
-
-To upgrade:
-
-```powershell
-scoop update supabase
-```
-
-## Linux
-
-### Homebrew
-
-Available via [Homebrew](https://brew.sh) and Linux packages.
-
-To install:
-
-```sh
-brew install supabase/tap/supabase
-```
-
-To upgrade:
-
-```sh
-brew upgrade supabase
-```
-
-### Linux packages
-
-Linux packages are provided in [Releases](https://github.com/supabase/cli/releases).
-To install, download the `.apk`/`.deb`/`.rpm` file depending on your package manager
-and run one of the following:
-
-- `sudo apk add --allow-untrusted <...>.apk`
-- `sudo dpkg -i <...>.deb`
-- `sudo rpm -i <...>.rpm`
diff --git a/apps/reference/_cli/intro.mdx b/apps/reference/_cli/intro.mdx
index 251aa6191e2..1615aa7ae28 100644
--- a/apps/reference/_cli/intro.mdx
+++ b/apps/reference/_cli/intro.mdx
@@ -8,18 +8,18 @@ hide_table_of_contents: true
# Supabase CLI
-The Supabase CLI can be found in our [CLI](https://github.com/supabase/cli) repository.
+The Supabase CLI provides tools to develop your project locally and deploy to the Supabase Platform.
+The CLI is still under development, but it contains all the functionality for working with your Supabase projects and the Supabase Platform.
-The CLI is still under heavy development, but it will contain all the functionality for working with Supabase projects and the Supabase platform.
-
-- Running Supabase locally: [`supabase start`](https://supabase.com/docs/reference/cli/usage#supabase-start)
-- Managing database migrations: [`supabase migration`](https://supabase.com/docs/reference/cli/usage#supabase-migration)
-- CI / CD for releasing to production: [`supabase db push`](https://supabase.com/docs/reference/cli/usage#supabase-db-push)
-- Manage your Supabase Projects: [`supabase projects`](https://supabase.com/docs/reference/cli/usage#supabase-projects)
-- Generating types directly from your database schema: [`supabase gen types`](https://supabase.com/docs/reference/cli/usage#supabase-gen)
+- Run Supabase locally: [`supabase start`](https://supabase.com/docs/reference/cli/usage#supabase-start)
+- Manage database migrations: [`supabase migration`](https://supabase.com/docs/reference/cli/usage#supabase-migration)
+- CI/CD for releasing to production: [`supabase db push`](https://supabase.com/docs/reference/cli/usage#supabase-db-push)
+- Manage your Supabase projects: [`supabase projects`](https://supabase.com/docs/reference/cli/usage#supabase-projects)
+- Generate types directly from your database schema: [`supabase gen types`](https://supabase.com/docs/reference/cli/usage#supabase-gen)
## Additional Links
+- [Install the Supabase CLI](/docs/guides/cli)
- [Source code](https://github.com/supabase/cli)
- [Known bugs and issues](https://github.com/supabase/cli/issues)
- [Supabase CLI v1 and Admin API Beta](https://supabase.com/blog/supabase-cli-v1-and-admin-api-beta)
diff --git a/apps/reference/docs/guides/cli.mdx b/apps/reference/docs/guides/cli.mdx
new file mode 100644
index 00000000000..ceeccfbaaa1
--- /dev/null
+++ b/apps/reference/docs/guides/cli.mdx
@@ -0,0 +1,110 @@
+---
+id: cli
+title: Supabase CLI
+description: Learn about the Supabase CLI.
+sidebar_label: Overview
+toc_max_heading_level: 2
+---
+
+import Tabs from '@theme/Tabs'
+import TabItem from '@theme/TabItem'
+
+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
+
+<Tabs
+ groupId="platform"
+ defaultValue="macos"
+ values={[
+ {label: 'macOS', value: 'macos'},
+ {label: 'Windows', value: 'windows'},
+ {label: 'Linux', value: 'linux'},
+ ]}>
+<TabItem value="macos">
+
+Install the CLI with [Homebrew](https://brew.sh):
+
+```sh
+brew install supabase/tap/supabase
+```
+
+</TabItem>
+
+<TabItem value="windows">
+
+Install the CLI with [Scoop](https://scoop.sh):
+
+```powershell
+scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
+scoop install supabase
+```
+
+</TabItem>
+
+<TabItem value="linux">
+
+The CLI is available through [Homebrew](https://brew.sh) and Linux packages.
+
+### Homebrew
+
+```sh
+brew install supabase/tap/supabase
+```
+
+### Linux packages
+
+Linux packages are provided in [Releases](https://github.com/supabase/cli/releases).
+To install, download the `.apk`/`.deb`/`.rpm` file depending on your package manager
+and run one of the following:
+
+- `sudo apk add --allow-untrusted <...>.apk`
+- `sudo dpkg -i <...>.deb`
+- `sudo rpm -i <...>.rpm`
+
+</TabItem>
+</Tabs>
+
+## Updates
+
+When a new [version](https://github.com/supabase/cli/releases) is released, you can update the CLI using the same methods.
+
+<Tabs
+ groupId="platform"
+ defaultValue="macos"
+ values={[
+ {label: 'macOS', value: 'macos'},
+ {label: 'Windows', value: 'windows'},
+ {label: 'Linux', value: 'linux'},
+ ]}>
+<TabItem value="macos">
+
+```sh
+brew upgrade supabase
+```
+
+</TabItem>
+
+<TabItem value="windows">
+
+```powershell
+scoop update supabase
+```
+
+</TabItem>
+
+<TabItem value="linux">
+
+```sh
+brew upgrade supabase
+```
+
+</TabItem>
+</Tabs>
+
+## See also
+
+- [Supabase CLI Reference](/docs/reference/cli/usage)
+- [Local Development](/docs/guides/cli/local-development)
+- [CI/CD Workflow](/docs/guides/cli/cicd-workflow)
diff --git a/apps/reference/nav/cli_sidebars.js b/apps/reference/nav/cli_sidebars.js
index d6b43541a6a..cc67985e8fe 100644
--- a/apps/reference/nav/cli_sidebars.js
+++ b/apps/reference/nav/cli_sidebars.js
@@ -18,7 +18,6 @@ const sidebars = {
sidebar: [
'intro',
- 'installing-and-updating',
'generated/usage',
'generated/config',
'release-notes',
diff --git a/web/sidebar_spec_cli.js b/web/sidebar_spec_cli.js
index 3d193c022b2..1df0d0b56f0 100644
--- a/web/sidebar_spec_cli.js
+++ b/web/sidebar_spec_cli.js
@@ -3,7 +3,7 @@ module.exports = {
{
type: 'category',
label: 'Getting Started',
- items: ['reference/cli/index', 'reference/cli/installing-and-updating', 'reference/cli/config-reference'],
+ items: ['reference/cli/index', 'reference/cli/config-reference'],
collapsed: true,
},
{