adamant-kite-43734
06/28/2023, 2:21 PMbrave-king-40287
06/28/2023, 2:21 PMhundreds-battery-84841
06/28/2023, 2:58 PMfast-garage-66093
06/28/2023, 4:11 PM$AUTH
credentials in the docs.fast-garage-66093
06/28/2023, 4:12 PMcurl
, as rdctl api
is just a wrapper that will provide the authentication automatically.fast-garage-66093
06/28/2023, 4:15 PMrdctl api /v1/settings
is the same (on macOS) as
$ PASSWD=$(jq -r .password "$HOME/Library/Application Support/rancher-desktop/rd-engine.json")
$ curl -s --user "user:$PASSWD" <http://localhost:6107/v1/settings> -X GET
fast-garage-66093
06/28/2023, 4:17 PMrdctl
as a subprocess. But from a shell script I would always use rdctl api
instead of curl
hundreds-battery-84841
06/28/2023, 4:18 PM