Skip to main content

Migração para CLI 3.0

Instalação

  1. Instale o Command Line Tools:
    xcode-select --install

  2. Atualize o shopify com Homebrew:
    brew upgrade shopify-cli
    Caso não esteja em macos ou sua versão atual não tenha sido instalado pelo brew, verificar aqui.

  3. Verifique a versão do Shopify:
    shopify version

  4. Faça o login na loja com o comando atualizado:
    shopify theme dev --store=sallvestore.myshopify.com

Atualizações

CLI 2.0CLI 3.0
AuthenticationAuthenticate with Shopify CLI using shopify loginYou don't need to log in explicitly. If you aren't logged in, then you're prompted to log in when you run a command that requires authentication.
View the organization you're currently logged into using shopify whoamiNo longer supported
Store selectionSelect a store using shopify login --storePass a --store flag the first time you run a command that requires connection to a store. This store is used in subsequent commands.
Switch between stores using shopify switchPass a --store flag with a new value when you want to run a command against a new store
Run shopify store to view which store you're currently using.Run shopify theme info to view which store you're currently using
GeneralPreview your theme in a store using shopify theme serveCommand is renamed to shopify theme dev
Populate stores using shopify populate [ products \| draftorders \| customers ]No longer supported
Specify the directory that you want to use using the [root] positional argumentSpecify the directory that you want to use using the –-path flag

Testes

  1. Rodar ambiente de desenvolvimento npm run dev:sallve ou npm run dev:contem
  2. Fazer deploy de tema homolog npm run deploy:homolog "teste - deploy"
  3. Trocar de loja sallve-contem - basta rodar qualquer comando que precise de autenticação (vide item 1)