Skip to content

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

formatting the cli pages

Copple87fe8662cadf
diff --git a/web/sidebar_spec_cli.js b/web/sidebar_spec_cli.js
index 9e5d12c2c9e..dc32a20f237 100644
--- a/web/sidebar_spec_cli.js
+++ b/web/sidebar_spec_cli.js
@@ -2,8 +2,8 @@ module.exports = {
docs: [
{
type: 'category',
- label: 'About',
- items: ['reference/cli/index'],
+ label: 'Getting Started',
+ items: ['reference/cli/index', 'reference/cli/installing-and-updating', 'reference/cli/config-reference'],
collapsed: true,
},
{
@@ -11,12 +11,6 @@ module.exports = {
label: 'Command reference',
items: ['reference/cli/supabase-help', 'reference/cli/supabase-login', 'reference/cli/supabase-link', 'reference/cli/supabase-init', 'reference/cli/supabase-start', 'reference/cli/supabase-stop', 'reference/cli/supabase-db-branch-list', 'reference/cli/supabase-db-branch-create', 'reference/cli/supabase-db-branch-delete', 'reference/cli/supabase-db-switch', 'reference/cli/supabase-db-changes', 'reference/cli/supabase-db-commit', 'reference/cli/supabase-db-reset', 'reference/cli/supabase-db-remote-set', 'reference/cli/supabase-db-remote-commit', 'reference/cli/supabase-db-push', 'reference/cli/supabase-functions-delete', 'reference/cli/supabase-functions-deploy', 'reference/cli/supabase-functions-new', 'reference/cli/supabase-functions-serve', 'reference/cli/supabase-migration-new', 'reference/cli/supabase-secrets-list', 'reference/cli/supabase-secrets-set', 'reference/cli/supabase-secrets-unset'],
collapsed: true,
- },
- {
- type: 'category',
- label: 'Config reference',
- items: ['reference/cli/config-reference'],
- collapsed: true,
}
],
}
\ No newline at end of file
diff --git a/web/spec/cli.yml b/web/spec/cli.yml
index 6530db3a41d..cb06b509b1f 100644
--- a/web/spec/cli.yml
+++ b/web/spec/cli.yml
@@ -23,61 +23,6 @@ info:
Follow the [Local Development guide](/docs/guides/local-development) for a quick overview of the CLI functionality.
- ## Installing the CLI
-
- ### macOS
-
- Available via [Homebrew](https://brew.sh). To install:
-
- ```sh
- brew install supabase/tap/supabase
- ```
-
- To upgrade:
-
- ```sh
- brew upgrade supabase
- ```
-
- ### Windows
-
- Available via [Scoop](https://scoop.sh). To install:
-
- ```powershell
- scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
- scoop install supabase
- ```
-
- To upgrade:
-
- ```powershell
- scoop update supabase
- ```
-
- ### Linux
-
- Available via [Homebrew](https://brew.sh) and Linux packages.
-
- #### via Homebrew
-
- To install:
-
- ```sh
- brew install supabase/tap/supabase
- ```
-
- To upgrade:
-
- ```sh
- brew upgrade supabase
- ```
-
- #### via 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 `sudo apk add --allow-untrusted <...>.apk`/`sudo dpkg -i <...>.deb`/`sudo rpm -i <...>.rpm` respectively.
-
## Support
Report issues to our [issue tracker](https://github.com/supabase/cli/issues).
@@ -90,9 +35,11 @@ info:
docs:
path: reference/cli/
sidebar:
- - name: 'About'
+ - name: 'Getting Started'
items:
- index
+ - Installing and Updating
+ - Config reference
- name: 'Command reference'
items:
- supabase help
@@ -119,9 +66,6 @@ info:
- supabase secrets list
- supabase secrets set
- supabase secrets unset
- - name: 'Config reference'
- items:
- - Config reference
pages:
supabase help:
@@ -385,122 +329,214 @@ pages:
supabase secrets unset <NAME> ...
```
+ Installing and Updating:
+ description: |
+ ## 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`
+
Config reference:
description: |
The config file resides in `supabase/config.toml` after you run `supabase init`.
+ ## General
+
### `project_id`
`required`
A string used to distinguish different Supabase projects on the same host. Defaults to the working directory name when running `supabase init`.
+ ## API
+
### `api.port`
- `required`, `default: 54321`
+ `required | default: 54321`
Port to use for the API URL.
### `api.schemas`
- `required`, `default: []`
+ `required | default: []`
Schemas to expose in your API. Tables, views and stored procedures in this schema will get API endpoints. `public` and `storage` are always included.
### `api.extra_search_path`
- `required`, `default: ["extensions"]`
+ `required | default: ["extensions"]`
Extra schemas to add to the search_path of every request.
### `api.max_rows`
- `required`, `default: 1000`
+ `required | default: 1000`
The maximum number of rows returned from a view, table, or stored procedure. Limits payload size for accidental or malicious requests.
+ ## Database
+
### `db.port`
- `required`, `default: 54322`
+ `required | default: 54322`
Port to use for the local database URL.
### `db.major_version`
- `required`, `default: 14`
+ `required | default: 14`
The database major version to use. This has to be the same as your remote database's. Run `SHOW server_version;` on the remote database to check.
+ ## Dashboard
+
### `studio.port`
- `required`, `default: 54323`
+ `required | default: 54323`
Port to use for Supabase Studio.
+ ## Local Development
+
### `inbucket.port`
- `required`, `default: 54324`
+ `required | default: 54324`
Port to use for the email testing server web interface.
Emails sent with the local dev setup are not actually sent - rather, they are monitored, and you can view the emails that would have been sent from the web interface.
+ ## Auth
+
### `auth.site_url`
- `required`, `default: "http://localhost:3000"`
+ `required | default: "http://localhost:3000"`
The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails.
### `auth.additional_redirect_urls`
- `required`, `default: ["https://localhost:3000"]`
+ `required | default: ["https://localhost:3000"]`
A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
### `auth.jwt_expiry`
- `required`, `default: 3600`
+ `required | default: 3600`
How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week).
### `auth.enable_signup`
- `required`, `default: true`
+ `required | default: true`
Allow/disallow new user signups to your project.
### `auth.email.enable_signup`
- `required`, `default: true`
+ `required | default: true`
Allow/disallow new user signups via email to your project.
### `auth.email.double_confirm_changes`
- `required`, `default: true`
+ `required | default: true`
If enabled, a user will be required to confirm any email change on both the old, and new email addresses. If disabled, only the new email is required to confirm.
### `auth.email.enable_confirmations`
- `required`, `default: true`
+ `required | default: true`
If enabled, users need to confirm their email address before signing in.
### `auth.external.<provider>.enabled`
- `required`, `default: false`
-
- Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`, `discord`, `facebook`, `github`, `gitlab`, `google`, `twitch`, `twitter`, `slack`, `spotify`.
+ `required | default: false`
+
+ Use an external OAuth provider. The full list of providers are:
+
+ - `apple`
+ - `azure`
+ - `bitbucket`
+ - `discord`
+ - `facebook`
+ - `github`
+ - `gitlab`
+ - `google`
+ - `twitch`
+ - `twitter`
+ - `slack`
+ - `spotify`
### `auth.external.<provider>.client_id`
- `required`, `default: ""`
+ `required | default: ""`
Client ID for the external OAuth provider.
### `auth.external.<provider>.secret`
- `required`, `default: ""`
+ `required | default: ""`
Client secret for the external OAuth provider.