Avisi cloud logo
Commands

auth login

Login to AME and store credentials in config file

acloud auth login [flags]

Examples

# login and create a new context using openid-connect
acloud auth login \
	--create-context \
	--organisation my-organisation
 
# force a new login using openid-connect
acloud auth login \
	--force
 
# login and create a custom context using openid-connect
acloud auth login \
	--create-context \
	--context-name custom \
	--organisation my-organisation \
	--api-url https://api.avisi.cloud \
	--issuer-url https://accounts.avisi.cloud/realms/ame
 
# login and create a new context using personal-access-token (pat)
acloud auth login \
	--create-context \
	--organisation my-organisation \
	--personal-access-token <your-personal-access-token>
 
# set a new personal-access-token (pat) to the current context
acloud auth login \
	--personal-access-token <your-personal-access-token>
 
# use a http-proxy for api calls and kubectl access (in acloud shell only)
acloud auth login \
	--create-context \
    --context-name with-http-proxy \
	--organisation my-organisation \
    --http-proxy http://127.0.0.1:3128

Options

      --api-url string                 api url (default "https://api.avisi.cloud")
      --client-id string               idp client id (default "acloud")
      --client-secret string           idp client secret
      --context-name string            name of the context (default "default")
      --create-context                 creates a context
      --custom-auth-url string         specify a custom auth url
      --custom-token-url string        specify a custom token url
  -f, --force                          force login even if current access- and/or refresh token are not expired
  -h, --help                           help for login
      --http-proxy string              specify a http-proxy to use
      --issuer-url string              idp issuer URL (default "https://accounts.avisi.cloud/auth/realms/ame")
      --listen-addresses string        listen addresses used for the OAuth callback (comma separated for fallback) (default "localhost:18000,localhost:8000")
      --offline                        request an offline token (default true)
      --personal-access-token string   specify a personal-access-token (pat)
      --scopes string                  scopes (comma separated) (default "openid,profile,email")

Options inherited from parent commands

  -C, --context string                    sets the context
      --debug                             enable debug mode
      --debug-show-authorization-header   prints actual authorization header in debug mode, use with caution!
  -O, --organisation string               sets the organisation
      --request-timeout duration          request timeout for api calls to the Avisi Cloud API (default 15s)
      --trace                             enable trace mode

SEE ALSO

On this page