Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

3. Connect to your store

Sofía Zapata Zavala edited this page Jun 11, 2018 · 12 revisions

Slate will need the API credentials from your Shopify store before you start developing. These credentials can be provided to Slate via your project's .env file.

Finding your SLATE_THEME_ID

⚠️ Slate will overwrite the existing code on this SLATE_THEME_ID with your local project's content. To avoid losing work, we suggest you go to /admin/themes and duplicate an existing theme to work from.

Go to your store's /admin/themes.xml, and copy the id for the theme you would like to update:

https://screenshot.click/17-04-mng8o-k9da8.png

Alternatively, you can set the SLATE_THEME_ID to "live" to update the published theme.

Generating your SLATE_PASSWORD

Navigate to your store's private apps page (/admin/apps/private).

Create a new private app and copy the password:

https://screenshot.click/17-07-u19kf-rx53b.png

Assign the private app permissions to "Read and Write" for theme templates and theme assets:

https://screenshot.click/17-09-owv1p-5lugl.png

Setting your connection

In your local .env file, add the following:

  • SLATE_STORE: The URL for your store, without the "https://".
  • SLATE_PASSWORD: The password from the app you've created.
  • SLATE_THEME_ID: The ID of the theme you want to overwrite.

Next: Start developing