A simple vtex cli for basic things. Hurry up don't waste your time, do these commands in your terminal:
$ npm install -g xvtx
$ xvtx deploy
Provide your email and account name to login, after wait the upload processes.
The process will generate a xvtx.lock.json file in root path of your project.
This file is used to cache files and prevent upload files with same content, we recomend to not delete or ignore this file.
The process will generate a xvtx.auth.json file in root path of your project.
This file is used to cache your auth login cookie, we recomend to ignore this file in .gitignore.
Help
$ xvtx -h
Download all templates from vtex platform
$ xvtx syncTemplates
$ xvtx syncTemplates --template template1.html
to download a unique template
Deploy auto provide account and email
$ xvtx deploy --account <accountName> --email <email>
Force update all files ignoring lockfile
$ xvtx deploy --force
Deploy Template Files
$ xvtx html
$ xvtx html --template template1.html
$ xvtx html --template template1.html --create true
Deploy SubTemplate Files
- | When creating it, a generic class "robotCreatedThisTemplate" are added*
$ xvtx sub
$ xvtx sub --template template1.html
$ xvtx sub --template template1.html --create true
Deploy ShelvesTemplate Files
$ xvtx shelf
$ xvtx shelf --template template1.html
$ xvtx shelf --template template1.html --create true
Deploy Assets Files "/arquivos" only
$ xvtx defaultAssets
$ xvtx defaultAssets --file file1.js,file.2.css
$ xvtx defaultAssets --file file1.js
List assets that can be uploaded to /arquivos
$ xvtx listAssets
- Added individual template download by using "--template" parameter in xvtx syncTemplates, usage: "xvtx syncTemplates --template templateName.html"
- Minor bugfixes
- Bugfixes on xvtx syncTemplates
- Added individual file upload by using "--file" argument
- Added list file upload by using "--file file1.js,file2.css" argument
- Added individual template upload by using "--template" argument
- Added template creation parameter by using "--create true" argument
This project is a simplified and modified version of Guilherme Paiva project, so great thanks to Guilherme Paiva, really.
A method to download a unique template by id or name
Template for es6 scripts components
Template for new "mundinho" scripts
Template for new "mundinho" styles
CLI task to download assets files
CLI task to delete assets files
CLI task to delete template files
Config file to set template folders
Create a changelog and deprecation log