How can I download current theme files?

I need to customize a theme that’s already created, so I want to download its files to my computer in order to start.

Already did:

  • Installed vtex CLI
  • Logged with my account
  • Created one new workspace

How can I download what’s on master workspace to my computer?

Hi @ren, unfortunately I believe that is not possible. If you don’t have access to the original code repository for the store theme, you will not be able to retrieve from our infrastructure.

That is because once an app is published, we only store the final bundle in our app registry, so that it can be installed in any VTEX account. The app registry, as such, is geared towards app distribution, not source code management or version control.

I found a CLI App called VTEX-dev that solves for this, check it out:

Syntax for downloading a complete set of code for any themes:
vtex-dev app:bundle accountname.themename@versionnumber.x

1 Like

How, can i get the themename and version number?

Does the command vtex edition get work for it?

When I login, I see the account namne, the theme name and the version.

You can also do vtex ls and get that info again on the screen. Hope this helps!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.