Skip to main content

Auth

The authentication credentials set here will be used as a basis for a variety

of HTTP requests using the MgcSDK. Authentication is done via Magalu Cloud account (Object Storage requires special keys, refer to it for more info)

Usage:

Usage:
mgc auth [flags]
mgc auth [command]

Product catalog:

  • Commands:
  • access-token Retrieve the access token used in the APIs
  • api-key Manage your ID Magalu API keys
  • clients Manage Clients (Oauth Applications) to use ID Magalu
  • login Authenticate with Magalu Cloud
  • logout Run logout
  • tenant Manage Tenants

Other commands:

  • Flags:
  • -h, --help help for auth

Flags:

Global Flags:
--api-key string Use your API key to authenticate with the API
-U, --cli.retry-until string Retry the action with the same parameters until the given condition is met. The flag parameters
use the format: 'retries,interval,condition', where 'retries' is a positive integer, 'interval' is
a duration (ex: 2s) and 'condition' is a 'engine=value' pair such as "jsonpath=expression"
-t, --cli.timeout duration If > 0, it's the timeout for the action execution. It's specified as numbers and unit suffix.
Valid unit suffixes: ns, us, ms, s, m and h. Examples: 300ms, 1m30s
--debug Display detailed log information at the debug level
--no-confirm Bypasses confirmation step for commands that ask a confirmation from the user
-o, --output string Change the output format. Use '--output=help' to know more details.
-r, --raw Output raw data, without any formatting or coloring