From 9936ae16fd74efc53cbbc3f9462c714baeeefa92 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 7 Mar 2024 17:51:38 -0500 Subject: [PATCH] Docs: wip --- www/generate.ts | 2 +- www/src/content/docs/docs/reference/cli.mdx | 66 +++++++++++++++++---- 2 files changed, 55 insertions(+), 13 deletions(-) diff --git a/www/generate.ts b/www/generate.ts index 5381a4ec7..6e09307d7 100644 --- a/www/generate.ts +++ b/www/generate.ts @@ -125,7 +125,7 @@ async function generateCliDoc() { lines.push(``, `### ${cmd.name}`, ``); // usage - if (cmd.children.length) { + if (!cmd.children.length) { lines.push( `#### Usage`, `
`, diff --git a/www/src/content/docs/docs/reference/cli.mdx b/www/src/content/docs/docs/reference/cli.mdx index 0884d22aa..b87039099 100644 --- a/www/src/content/docs/docs/reference/cli.mdx +++ b/www/src/content/docs/docs/reference/cli.mdx @@ -52,11 +52,23 @@ Print help ### version +#### Usage +
+``` +sst version +``` +
Print the version
### dev +#### Usage +
+``` +sst dev [command] +``` +
#### Args @@ -68,12 +80,6 @@ Run in development mode ### secret -#### Usage -
-``` -sst secret -``` -
#### Subcommands @@ -124,6 +130,12 @@ List all secrets ### shell +#### Usage +
+``` +sst shell [command] +``` +
#### Args @@ -135,43 +147,73 @@ Run command with all resource linked in environment ### install +#### Usage +
+``` +sst install +``` +
Install dependencies specified in sst.config.ts
### deploy +#### Usage +
+``` +sst deploy +``` +
Deploy your application
### remove +#### Usage +
+``` +sst remove +``` +
Remove your application
### refresh +#### Usage +
+``` +sst refresh +``` +
### cancel +#### Usage +
+``` +sst cancel +``` +
Cancel any pending deploys
### init - - - -### state - #### Usage
``` -sst state +sst init ```
+
+ +### state + +
#### Subcommands -

[edit](#state-edit)