Skip to main content

integration:create

Create a new integration (WebAPI access token).

tip

Use this command to generate access credentials for third-party applications or services that need to interact with your Magento store via the WebAPI.

n98-magerun2.phar integration:create [options] [--] <name> [<email> [<endpoint>]]

Arguments:

ArgumentDescription
nameName of the integration
emailEmail
endpointEndpoint URL

Options:

OptionDescription
--consumer-key=CONSUMER-KEYConsumer Key (length 32 chars)
--consumer-secret=CONSUMER-SECRETConsumer Secret (length 32 chars)
--access-token=ACCESS-TOKENAccess-Token (length 32 chars)
--access-token-secret=ACCESS-TOKEN-SECRETAccess-Token Secret (length 32 chars)
--resource=RESOURCE -rDefines a granted ACL resource (multiple values allowed)
--format[=FORMAT]Output Format. One of [csv,json,json_array,yaml,xml]
warning

If no ACL resource is defined, the new integration token will be created with FULL ACCESS. To restrict access, provide a list of ACL resources using the --resource option.