General commands

This article outlines the general commands in the SHOPLINE CLI.


help​

You can view all available commands and their descriptions using any of the following commands:

sl help
sl -h
sl --help

Additionally, you can obtain help for a specific command using one of the following help commands:

sl [command] -h
sl [command] --help

login​

Use the following command to authenticate your session with the SHOPLINE CLI for the specified store.

sl login --store <STORE_DOMAIN>

Parameters​

ParameterRequiredDescription
--store <STORE_DOMAIN>YesSpecifies the store to log into.

The --store parameter accepts the following inputs:

TypeExample
myshopline.com website
  • example.myshopline.com
  • https://example.myshopline.com
Store Admin URL
  • example.myshopline.com/admin
  • https://example.myshopline.com/admin
CAUTION

The CLI login only supports domains with *.myshopline.com and does not support custom domains.


logout​

Use the following command to clear login credentials. You will need to log in again the next time you connect to the store.

sl logout

whoami​

Use the following command to view the currently logged-in store.

sl whoami
Was this article helpful to you?