commercelayer
command which can also be accessed with the aliases clayer
and cl
. commercelayer help
at any point to learn about the available command options.applications:login
command lets you manage login to CLI applications.-o
flag allows you to pass in an organization slug as a parameter.<organizationSlug>
represents the slug from your organization’s base endpoint (e.g. sample-shop
from https://sample-shop.commercelayer.io
).-i
flag allows you to pass in a client ID as a parameter.<clientId>
represents the client ID from your application created on the dashboard.-s
flag allows you to pass in a client secret as a parameter.<clientSecret>
represents the client secret from your application created on the dashboard.-a
flag allows you to pass in an alias that will be associated with the application you want to log into on your terminal (this is useful when switching between multiple applications).cl resources
to list all the available Commerce Layer API resources and a link to the documentation of each one. Use commercelayer resources --help
to see the available commands and what they do.commercelayer resources:create [RESOURCE]
command to create new resources.-r, --relationship=<value>
flag which defines a relationship with another resource(s).-a, --attribute=<value>
flag which defines the attributes of a resource that will be used.cl resources:list <resource_type>
and checking if the resource is in the returned list (e.g. cl resources:list payment_gateways
will list all the payment gateways that have been created).cl resources:list payment_gateways
to list all the payment gateway(s) created or cl resources:list <gateway_type>_gateways
to list only the specified ’s payment gateways created.skus.json
with an array containing the list of additional SKUs you want to import: