Theme extension commands
Overview
The theme application extension currently includes the following two commands:
create
Build a new extension project in the application's subdirectory.
In the interactive command, you need to enter the App Key
and the App Secret
to complete the creation of the application extension.
In addition, you can use the --name
tag to specify the name of the application extension directory to be generated. If not specified, the --theme-app-extension
subdirectory will be generated in the current directory by default.
shopline extension create
# specify the directory name
shopline extension create --name shopline-theme-app-extension
You can find the
App Key
andApp Secret
in the Application credentials under the application corresponding to the SHOPLINE open platform.
push
Upload your code to SHOPLINE.
You need to run this command before the theme extension of the SHOPLINE open platform.
If your application extension is not registered, the command will automatically register and push it to SHOPLINE.
shopline extension push
After the push is successful, the CLI will generate a link to the application extension on SHOPLINE. You can create a new version and publish your theme application extension there.
shopline extension push
✔ Pushed xxxx to a draft on 2022-09-22 14:32:43.
✨ Visit https://developer.myshopline.com/app/edit-extension/xxxx/xxxx to version and publish your extension.
connect
Connect your local project directory to existing applications in SHOPLINE.
This command enables your teams to access and collaborate on the same theme extension codes. Each developer can clone the theme extension codes locally, and then run the shopline extension connect
command to push changes .
Changes pushed to the extension require the App Key
and App Secret
which can be added to the local .env
file
shopline extension connect
? Which extension would you like to connect to?
Project now connected to My first app: theme-app-extension
Error loading component.