Skip to content

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

add isOptional prop to CLI commands (#10995)

Jonathan Summers-Muir16c9ab575f24
diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsx
index 89cae3bfb24..9f685157482 100644
--- a/apps/docs/components/reference/CLICommandSection.tsx
+++ b/apps/docs/components/reference/CLICommandSection.tsx
@@ -27,6 +27,7 @@ export type Flag = {
description: string
default_value: string
accepted_values: AcceptedValue[]
+ required?: boolean
}
export type AcceptedValue = {
@@ -107,7 +108,7 @@ const CliCommandSection = (props) => {
{command.flags.map((flag: Flag) => (
<>
<li className="mt-0">
- <Param {...flag}>
+ <Param {...flag} isOptional={!flag.required}>
{flag?.accepted_values && (
<Options>
{flag?.accepted_values.map((value) => {