CLI configuration
A config.toml
file is generated after running supabase init
.
This file is located in the supabase
folder under supabase/config.toml
. You can edit this file to change the settings for your locally running project. After you make changes, you will need to restart using supabase stop
and then supabase start
for the changes to take effect.
General Config#
project_id
#
Name | Default | Required |
---|---|---|
project_id | None | true |
Description
A string used to distinguish different Supabase projects on the same host. Defaults to the working directory name when running supabase init
.
Auth Config#
auth.site_url
#
Name | Default | Required |
---|---|---|
auth.site_url | "http://localhost:3000" | true |
Description
The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails.
See also
auth.additional_redirect_urls
#
Name | Default | Required |
---|---|---|
auth.additional_redirect_urls | ["https://localhost:3000"] | true |
Description
A list of exact URLs that auth providers are permitted to redirect to post authentication.
See also
auth.jwt_expiry
#
Name | Default | Required |
---|---|---|
auth.jwt_expiry | 3600 | true |
Description
How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week).
See also
auth.enable_signup
#
Name | Default | Required |
---|---|---|
auth.enable_signup | true | true |
Description
Allow/disallow new user signups to your project.
See also
auth.email.enable_signup
#
Name | Default | Required |
---|---|---|
auth.email.enable_signup | true | true |
Description
Allow/disallow new user signups via email to your project.
See also
auth.email.double_confirm_changes
#
Name | Default | Required |
---|---|---|
auth.email.double_confirm_changes | true | true |
Description
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.
See also
auth.email.enable_confirmations
#
Name | Default | Required |
---|---|---|
auth.email.enable_confirmations | true | true |
Description
If enabled, users need to confirm their email address before signing in.
See also
auth.email.template.<type>.subject
#
Name | Default | Required |
---|---|---|
auth.email.template.type.subject | None | false |
Description
The full list of email template types are:
invite
confirmation
recovery
magic_link
email_change
See also
auth.email.template.<type>.content_path
#
Name | Default | Required |
---|---|---|
auth.email.template.type.content_path | None | false |
Description
The full list of email template types are:
invite
confirmation
recovery
magic_link
email_change
See also
auth.external.<provider>.enabled
#
Name | Default | Required |
---|---|---|
auth.external.provider.enabled | true | true |
Description
Use an external OAuth provider. The full list of providers are:
apple
azure
bitbucket
discord
facebook
github
gitlab
google
twitch
twitter
slack
spotify
See also
auth.external.<provider>.client_id
#
Name | Default | Required |
---|---|---|
auth.external.provider.client_id | None | true |
Description
Client ID for the external OAuth provider.
See also
auth.external.<provider>.secret
#
Name | Default | Required |
---|---|---|
auth.external.provider.secret | None | true |
Description
Client secret for the external OAuth provider.
See also
auth.external.<provider>.url
#
Name | Default | Required |
---|---|---|
auth.external.provider.url | "" | false |
Description
The base URL used for constructing the URLs to request authorization and access tokens. Used by gitlab and keycloak. For gitlab it defaults to https://gitlab.com. For keycloak you need to set this to your instance, for example: https://keycloak.example.com/realms/myrealm .
See also
auth.external.<provider>.redirect_uri
#
Name | Default | Required |
---|---|---|
auth.external.provider.redirect_uri | "" | false |
Description
The URI a OAuth2 provider will redirect to with the code and state values.
See also
API Config#
api.port
#
Name | Default | Required |
---|---|---|
api.port | None | true |
Description
Port to use for the API URL.
Usage
[api]
port = 54321
See also
api.schemas
#
Name | Default | Required |
---|---|---|
api.schemas | ["public", "storage", "graphql_public"] | false |
Description
Schemas to expose in your API. Tables, views and functions in this schema
will get API endpoints. public
and storage
are always included.
See also
api.extra_search_path
#
Name | Default | Required |
---|---|---|
api.extra_search_path | ["public"] | false |
Description
Extra schemas to add to the search_path of every request. public is always included.
See also
api.max_rows
#
Name | Default | Required |
---|---|---|
api.max_rows | 1000 | false |
Description
The maximum number of rows returned from a view, table, or stored procedure. Limits payload size for accidental or malicious requests.
See also
Database Config#
db.port
#
Name | Default | Required |
---|---|---|
db.port | None | true |
Description
Port to use for the local database URL.
See also
db.shadow_port
#
Name | Default | Required |
---|---|---|
db.shadow_port | 54320 | false |
Description
Port to use for the local shadow database.
See also
db.major_version
#
Name | Default | Required |
---|---|---|
db.major_version | 14 | true |
Description
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.
See also
Dashboard Config#
studio.port
#
Name | Default | Required |
---|---|---|
studio.port | None | true |
Description
Port to use for Supabase Studio.
See also
Local Config#
inbucket.port
#
Name | Default | Required |
---|---|---|
inbucket.port | None | true |
Description
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.
See also
inbucket.smtp_port
#
Name | Default | Required |
---|---|---|
inbucket.smtp_port | None | false |
Description
Port to use for the email testing server SMTP port.
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.
If set, you can access the SMTP server from this port.
See also
inbucket.pop3_port
#
Name | Default | Required |
---|---|---|
inbucket.pop3_port | None | false |
Description
Port to use for the email testing server POP3 port.
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.
If set, you can access the POP3 server from this port.
See also
storage.file_size_limit
#
Name | Default | Required |
---|---|---|
storage.file_size_limit | None | false |
Description
The maximum file size allowed (e.g. "5MB", "500KB").
See also
Edge-Functions Config#
functions.<function_name>.verify_jwt
#
Name | Default | Required |
---|---|---|
functions.function_name.verify_jwt | true | false |
Description
By default, when you deploy your Edge Functions or serve them locally, it will reject requests without a valid JWT in the Authorization header. Setting this configuration changes the default behavior.
Note that the --no-verify-jwt
flag overrides this configuration.
functions.<function_name>.import_map
#
Name | Default | Required |
---|---|---|
functions.function_name.import_map | None | false |
Description
Specify the Deno import map file to use for the Function.
Note that the --import-map
flag overrides this configuration.
Need some help?
Contact supportLastest product updates?
See ChangelogSomething's not right?
Check system status