You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**IMPORTANT** passwords can contain special characters like `$` which would be interpreted as shell variables. This can cause the command to fail as a wrong value (shell interpreted) of password would be sent to the server. Always use single quotes '' to enclose the actual value of the password to avoid such errors.
206
-
3. Execute the argocd commands
207
-
```
208
-
# argocd [command or options] [arguments…]
205
+
206
+
Upon successful login, the context that would be used for the session would be displayed as below.
209
207
```
210
-
eg:
211
-
```
212
-
# argocd app list
208
+
'admin:login' logged in successfully
209
+
Context '<server_url>' updated
213
210
```
214
211
215
212
#### Core mode
@@ -308,7 +305,7 @@ Print version information
308
305
```
309
306
- Print only full version of the server
310
307
```
311
-
# argocd version --server openshift-gitops.openshift-gitops.crc.local
308
+
# argocd version --server <server_url>
312
309
```
313
310
- Print the full version of client and server in JSON format
314
311
```
@@ -344,20 +341,14 @@ Write bash or zsh shell completion code to standard output.
344
341
For bash, ensure you have bash completions installed and enabled.
345
342
To access completions in your current shell, run the following command
346
343
```
347
-
$ source <(argocd completion bash)
344
+
#source <(argocd completion bash)
348
345
```
349
346
Alternatively, write it to a file and source in `.bash_profile`
350
347
351
348
For zsh, add the following to your `~/.zshrc` file:
352
349
```
353
-
$ source <(argocd completion zsh)
354
-
$ compdef _argocd argocd
355
-
```
356
-
Optionally, also add the following, in case you are getting errors involving compdef & compinit such as command not found:
357
-
```
358
-
$ compdef:
359
-
autoload -Uz compinit
360
-
$ compinit
350
+
source <(argocd completion zsh)
351
+
compdef _argocd argocd
361
352
```
362
353
363
354
##### Usage:
@@ -531,7 +522,6 @@ $ compinit
531
522
eg:
532
523
```
533
524
# get the admin password and use it by enclosing in single quotes.
**IMPORTANT** passwords can contain special characters like `$` which would be interpreted as shell variables. This can cause the command to fail as a wrong value (shell interpreted) of password would be sent to the server. Always use single quotes '' to enclose the actual value of the password to avoid such errors.
@@ -651,7 +641,6 @@ $ compinit
651
641
eg:
652
642
```
653
643
# get the admin password and use it by enclosing in single quotes.
**IMPORTANT** passwords can contain special characters like `$` which would be interpreted as shell variables. This can cause the command to fail as a wrong value (shell interpreted) of password would be sent to the server. Always use single quotes '' to enclose the actual value of the password to avoid such errors.
@@ -763,7 +752,6 @@ $ compinit
763
752
eg:
764
753
```
765
754
# get the admin password and use it by enclosing in single quotes.
**IMPORTANT** passwords can contain special characters like `$` which would be interpreted as shell variables. This can cause the command to fail as a wrong value (shell interpreted) of password would be sent to the server. Always use single quotes '' to enclose the actual value of the password to avoid such errors.
0 commit comments