Skip to content

Commit c666a70

Browse files
docs: integrate juno run in CLI (#524)
* docs: integrate juno run in CLI Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * πŸ“„ Update LLMs.txt snapshot for PR review --------- Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8bccec5 commit c666a70

4 files changed

Lines changed: 31 additions & 1 deletion

File tree

β€Ž.llms-snapshots/llms-full.txtβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7834,6 +7834,16 @@ Usage: juno functions <subcommand> [options]Subcommands: build B
78347834

78357835
---
78367836

7837+
## Run
7838+
7839+
Run a custom script in the CLI context.
7840+
7841+
```
7842+
Usage: juno run [options]Options: -s, --src The path to your JavaScript or TypeScript script. -m, --mode Choose which environment to use (production, staging, development). Defaults to production if omitted. -p, --profile Specify an optional profile to use (e.g. personal, team). Useful when managing multiple Mission Controls. --container-url Override a custom container URL. If not provided, defaults to production or the local container in development mode. -h, --help Output usage information.
7843+
```
7844+
7845+
---
7846+
78377847
### Build
78387848

78397849
Build your serverless functions.

β€Ždocs/reference/cli.mdxβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,14 @@ import Functions from "./cli/functions.md";
234234

235235
---
236236

237+
## Run
238+
239+
import Run from "./cli/run.md";
240+
241+
<Run />
242+
243+
---
244+
237245
### Build
238246

239247
import FunctionsBuild from "./cli/functions-build.md";

β€Ždocs/reference/cli/run.mdβ€Ž

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Run a custom script in the CLI context.
2+
3+
```
4+
Usage: juno run [options]
5+
6+
Options:
7+
-s, --src The path to your JavaScript or TypeScript script.
8+
-m, --mode Choose which environment to use (production, staging, development). Defaults to production if omitted.
9+
-p, --profile Specify an optional profile to use (e.g. personal, team). Useful when managing multiple Mission Controls.
10+
--container-url Override a custom container URL. If not provided, defaults to production or the local container in development mode.
11+
-h, --help Output usage information.
12+
```

β€Žscripts/cli-to-md.shβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function generate_command_markdown() {
77
eval "juno "$cmd" --headless --help --doc" | sed 's/\x1b\[[0-9;]*m//g' > docs/reference/cli/"$output".md
88
}
99

10-
COMMANDS=clear,config,deploy,emulator,functions,changes,init,login,logout,open,snapshot,start,stop,upgrade,version,status,whoami
10+
COMMANDS=clear,config,deploy,emulator,functions,changes,init,login,logout,open,snapshot,start,stop,upgrade,version,status,whoami,run
1111

1212
for cmd in $(echo $COMMANDS | sed "s/,/ /g"); do
1313
generate_command_markdown "$cmd"

0 commit comments

Comments
Β (0)