Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 036c5ed

Browse files
committed
document cli4 having --header flag
1 parent 6eed220 commit 036c5ed

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,16 @@ You can also pass these via Python calls.
355355
...
356356
```
357357

358+
These header values can also be passed via `cli4` command (many times) - use the `-v` option to see the debug messages:
359+
```
360+
$ cli4 -v --header 'X-something:' --header 'X-whatever:whatever' /zones > /tmp/results.json
361+
...
362+
--header "X-something: " \
363+
--header "X-whatever: whatever " \
364+
...
365+
$
366+
```
367+
358368
### Advanced use of configuration file for authentication based on method
359369

360370
The configuration file can have values that are both generic and specific to the method.
@@ -657,6 +667,7 @@ $ cli4 [-V|--version] [-h|--help] [-v|--verbose] \
657667
[-A|--openapi url] \
658668
[-b|--binary] \
659669
[-p|--profile profile-name] \
670+
[-h|--header additional-header] \
660671
[--get|--patch|--post|--put|--delete] \
661672
[item=value|item=@filename|@filename ...] /command ...
662673
```

0 commit comments

Comments
 (0)