Documentation
Feedback
Guides
App Development

App Development
Getting StartedPixel apps
1. Setting up your development environment

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.

Step by step

Step 1 - Installing the VTEX IO CLI

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.

  1. Install the VTEX IO CLI on your machine by following this guide.
  2. Check if the installation was successful by running vtex.

Step 2 - Logging in to your VTEX account

After installing the VTEX IO CLI in your machine, take the following steps to log in to your VTEX account.

  1. Log in to your VTEX account by running the following command:

_10
vtex login accountName

Replace accountName with the name of your VTEX account.

{"base64":"  ","img":{"width":1462,"height":360,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":183987,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-io-documentation-2-basicsetuptodevelopinvtexio-0.png"}}

  1. 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.

Step 2 - Creating a development workspace

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.

  1. Create a development workspace by running the following command:

_10
vtex use exampleworkspace

Replace exampleworkspace with a name of your choosing to identify your new workspace.

  1. Enter Y to create the new workspace.

{"base64":"  ","img":{"width":652,"height":154,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":53203,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-io-documentation-2-basicsetuptodevelopinvtexio-1.png"}}

After running this command, you'll be taken to the exampleworkspace workspace, and all your operations will now run in this specified workspace.

Step 3 - Accessing your store using a workspace

After creating a new development workspace, you can access this version of your store by going to: https://exampleworkspace--accountName.myvtex.com, where:

  • 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!

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
See also
2. Cloning the boilerplate repository
App Development
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page