mirror of https://github.com/dapr/docs.git
Add CLI reference docs for --data-file flags for invoke and publish (#1501)
This commit is contained in:
parent
6fb3a79dad
commit
cac33b5680
|
@ -26,6 +26,7 @@ dapr invoke [flags]
|
||||||
| `--help`, `-h` | | | Print this help message |
|
| `--help`, `-h` | | | Print this help message |
|
||||||
| `--method`, `-m` | | | The method to invoke |
|
| `--method`, `-m` | | | The method to invoke |
|
||||||
| `--data`, `-d` | | | The JSON serialized data string (optional) |
|
| `--data`, `-d` | | | The JSON serialized data string (optional) |
|
||||||
|
| `--data-file`, `-f` | | | A file containing the JSON serialized data (optional)
|
||||||
| `--verb`, `-v` | | `POST` | The HTTP verb to use |
|
| `--verb`, `-v` | | `POST` | The HTTP verb to use |
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -23,10 +23,11 @@ dapr publish [flags]
|
||||||
|
|
||||||
| Name | Environment Variable | Default | Description
|
| Name | Environment Variable | Default | Description
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `--publish-app-id` | `-i`| | The ID that represents the app from which you are publishing
|
| `--publish-app-id`, `-i`| | The ID that represents the app from which you are publishing
|
||||||
| `--pubsub` | `-p` | | The name of the pub/sub component
|
| `--pubsub`, `-p` | | The name of the pub/sub component
|
||||||
| `--topic`, `-t` | | | The topic to be published to |
|
| `--topic`, `-t` | | | The topic to be published to |
|
||||||
| `--data`, `-d` | | | The JSON serialized string (optional) |
|
| `--data`, `-d` | | | The JSON serialized string (optional) |
|
||||||
|
| `--data-file`, `-f` | | | A file containing the JSON serialized data (optional) |
|
||||||
| `--help`, `-h` | | | Print this help message |
|
| `--help`, `-h` | | | Print this help message |
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue