Skip to content

Commit adfe2fb

Browse files
authored
Pass variables through CLI (windmill-labs#453)
1 parent a44e74e commit adfe2fb

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

docs/advanced/3_cli/flow.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ wmill flow run <remote_path> [options]
4949

5050
| Option | Parameters | Description |
5151
| -------------- | ---------- | ----------------------------------------------------------------------------- |
52-
| `-d, --data` | `data` | Inputs specified as a JSON string or a file using @filename or stdin using @- |
52+
| `-d, --data` | `data` | Inputs specified as a JSON string or a file using @filename or stdin using @- . Resources and variables must be passed using "$res:..." or "$var:..." For example `wmill flow run u/henri/message_to_slack -d '{"slack":"$res:u/henri/henri_slack_perso","channel":"general","text":"hello dear team"}'` |
5353
| `-s, --silent` | | Do not ouput anything other then the final output. Useful for scripting. |
5454

55+
![CLI arguments](../../assets/cli/cli_arguments.png "CLI arguments")
56+
5557
## Flow specification
5658

5759
You can find the definition of the flow file structure [here](/docs/openflow/index.mdx).

docs/advanced/3_cli/script.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ wmill script run <remote_path> [options]
7272

7373
| Option | Parameters | Description |
7474
| -------------- | ---------- | ----------------------------------------------------------------------------- |
75-
| `-d, --data` | `data` | Inputs specified as a JSON string or a file using @filename or stdin using @- |
75+
| `-d, --data` | `data` | Inputs specified as a JSON string or a file using @filename or stdin using @- . Resources and variables must be passed using "$res:..." or "$var:..." For example `wmill script run u/henri/message_to_slack -d '{"slack":"$res:u/henri/henri_slack_perso","channel":"general","text":"hello dear team"}'` |
7676
| `-s, --silent` | | Do not ouput anything other then the final output. Useful for scripting. |
7777

78+
![CLI arguments](../../assets/cli/cli_arguments.png "CLI arguments")
79+
7880
## Remote path format
7981

8082
```js

docs/assets/cli/cli_arguments.png

133 KB
Loading

sidebars.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,12 @@ const sidebars = {
314314
'advanced/cli/workspace-management',
315315
'advanced/cli/sync',
316316
'advanced/cli/user',
317+
'advanced/cli/script',
317318
'advanced/cli/flow',
318319
'advanced/cli/app',
319320
'advanced/cli/resource',
320321
'advanced/cli/variable',
321-
'advanced/cli/folder',
322-
'advanced/cli/script'
322+
'advanced/cli/folder'
323323
]
324324
},
325325
'advanced/deploy_gh_gl/index',

0 commit comments

Comments
 (0)