I'm having some problems with fleetctl not recogni...
# fleet
z
I'm having some problems with fleetctl not recognizing my switches on the command line?
Copy code
fleetctl config set --context default
NAME:
   fleetctl config set - Set config options

USAGE:
   fleetctl config set [options]

OPTIONS:
   --config value      Path to the fleetctl config file (default: "/Users/zzeid/.fleet/config") [$CONFIG]
   --context value     Name of fleetctl config context to use (default: "default") [$CONTEXT]
   --address value     Address of the Fleet server [$ADDRESS]
   --email value       Email to use when connecting to the Fleet server [$EMAIL]
   --token value       Fleet API token [$TOKEN]
   --tls-skip-verify   Skip TLS certificate validation (default: false) [$INSECURE]
   --rootca value      Specify RootCA chain used to communicate with fleet [$ROOTCA]
   --url-prefix value  Specify URL Prefix to use with Fleet server (copy from server configuration) [$URL_PREFIX]
   --help, -h          show help (default: false)
z
What are you trying to do? Might just be missing a flag.
z
I'm trying to set the context pointing to my api key. because I cannot
fleetctl login
. it. just. asks me for my un/pw
which we dont hhave due to SSO
z
Try
fleetctl config set --token <paste here>
z
Copy code
Set the token config key to "foobarbaz" in the "default" context
fleetctl login
Log in using the standard Fleet credentials.
Email: email@address
Password:
Login failed: login received status 401 Authentication failed: Authentication failed
z
Ah after you set the token you don't need to do a login
z
ayayay that'll solve it, thanks
🍻 1