Skip to content

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

docs: add usage to CLI docs (#34450)

James Rodewig1d4baa4b1c99
diff --git a/apps/docs/features/docs/Reference.sections.tsx b/apps/docs/features/docs/Reference.sections.tsx
index c96179f5530..c78b0ee4220 100644
--- a/apps/docs/features/docs/Reference.sections.tsx
+++ b/apps/docs/features/docs/Reference.sections.tsx
@@ -165,6 +165,18 @@ async function CliCommandSection({ link, section }: CliCommandSectionProps) {
{command.description && (
<ReactMarkdown className="prose break-words mb-8">{command.description}</ReactMarkdown>
)}
+ {command.usage && (
+ <div className="mb-8">
+ <h3 className="mb-2 text-base text-foreground">Usage</h3>
+ <CodeBlock
+ language="bash"
+ className="p-4 rounded-md border bg-surface-100"
+ wrapperClassName="break-all"
+ >
+ {command.usage}
+ </CodeBlock>
+ </div>
+ )}
{(command.subcommands ?? []).length > 0 && (
<>
<h3 className="mb-3 text-base text-foreground">Subcommands</h3>