In this part of the tutorial, you will:
- Install all the necessary tools to develop your own Pixel app.
- Create a new development workspace.
- Access your store using a workspace.
Any development in VTEX IO begins and ends with the VTEX IO CLI, which works as a communication gateway between your store and the VTEX IO development platform. With VTEX IO’s CLI, you can use the terminal to log in to your VTEX account, manage workspaces, develop apps, and install new ones.
- Install the VTEX IO CLI on your machine by following this guide.
- Check if the installation was successful by running
After installing the VTEX IO CLI in your machine, take the following steps to log in to your VTEX account.
- Log in to your VTEX account by running the following command:
vtex login accountName
accountNamewith the name of your VTEX account.
- After running the command, a browser window will open and ask for your credentials. Please enter the information required to log in to your account successfully.
When developing with VTEX IO, you'll use different workspaces. Workspaces are environments isolated from one another. They can be understood as different versions of the same VTEX account. In practice, changes performed in a particular workspace do not affect your store's live version or other developers' work.
When you log in to a VTEX account using the VTEX IO CLI, you are automatically in the master workspace, which is the version of your store available to end-users. Hence, to avoid changing your store's live version, you must create a development workspace.
- Create a development workspace by running the following command:
vtex use exampleworkspace
exampleworkspacewith a name of your choosing to identify your new workspace.
Yto create the new workspace.
After running this command, you'll be taken to the
exampleworkspace workspace, and all your operations will now run in this specified workspace.
After creating a new development workspace, you can access this version of your store by going to:
exampleworkspace- Name of the workspace that you've just created.
accountName- Name of the VTEX account in which you are working.
Done! You're now ready to start developing your Pixel app!
Updated about 1 month ago