Skip to content

Commit

Permalink
cli: litt info om flagg-bruken
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrremann committed Jul 24, 2023
1 parent 88ead01 commit be122ca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@ Then follow our [installation](install.md) guide.
## Usage

See the chapters under commands in the sidebar.

Note that NAIS-cli requires all flags to appear before arguments (otherwise the flags will be interpreted as arguments).

OK:
```
nais postgres --context dev-gcp --namespace dreamteam proxy
```

Not OK:
```
nais postgres proxy --context dev-gcp --namespace dreamteam
```
3 changes: 3 additions & 0 deletions docs/cli/commands/postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ All command have the following global flags avaiable:
| namespace | No | -n | namespace set in kubeconfig | Kubernetes namespace where app is deployed |
| cluster | No | -c | context set in kubeconfig | Kubernetes context where app is deployed |

Note all flags has to appear before arguments (otherwise the flags will be interpreted as arguments).


!!! warning

Run the following command first before running any of the other commands:
Expand Down

0 comments on commit be122ca

Please sign in to comment.