A command-line-interface (CLI) which allows you to easily perform custom tasks for your vendhq.com instance
$ vend-tools
Usage: vend-tools COMMAND [OPTIONS]
This command-line-interface (CLI) allows you to easily perform custom tasks for your vendhq.com instance.
Available commands:
export-all-products Export All Products (CSV file format by default)
export-all-suppliers Export All Suppliers (CSV file format by default)
fetch-product-by-id Fetches a product by id
fetch-product-by-sku Fetches a product by SKU
fetch-product-by-handle Fetches a product by handle
list-products List Products (200 at a time)
list-suppliers List Suppliers (200 at a time)
report-costs-for-suppliers Report the costs for each supplier per outlet
docker run -t -i pulkitsinghal/vend-tools:latest /bin/bash
vend-tools configure
vend-tools
http://git-scm.com/download/win
and install itcmd
(please do so as an admin)git clone git://github.com/hakobera/nvmw.git "%HOMEDRIVE%%HOMEPATH%\.nvmw"
c:\
drive and a u:\
user-drive mapped together then do NOT use %HOMEDRIVE%%HOMEPATH%
git clone git://github.com/hakobera/nvmw.git "c:\dev\.nvmw"
etc.cmd
as an administratorsetx /M PATH "%HOMEDRIVE%%HOMEPATH%\.nvmw;%PATH%"
setx /M PATH "c:\dev\.nvmw;%PATH%"
cmd
nvmw install v0.10.36
but thefirst time fails, second time will work so run it again: nvmw install v0.10.36
node --version
should spit out: v0.10.36
setx /M PATH "%HOMEDRIVE%%HOMEPATH%\.nvmw\v0.10.36;%PATH%"
setx /M PATH "c:\dev\.nvmw\v0.10.36;%PATH%"
cmd
git
and nodejs
installed (nvm
/nvmw
is optional)npm install -g vend-tools
vend-tools configure
Register as a developer
then create a new application for yourself at https://developers.vendhq.com/developer/applications as this will provide you with client_id
and client_secret
refresh_token
and access_token
, you have two choices:https://{DOMAIN_PREFIX}.vendhq.com/connect
https://{DOMAIN_PREFIX}.vendhq.com/api/1.0/token
vend-tools
This is a labor of love. This effort is not funded, endorsed or sponsored by Vend.
This module is being written out of sheer respect for Vend's uncanny success at platformizing retail with their public API. It will hopefully help democratize access further by adding ease of use for developers. The authors of this module are not Vend employees and Vend didn't ask us to do this. Retail is a tricky/competitive space and we want to help reduce development churn, by open-sourcing pieces that allow folks to build iterative solutions. When in doubt, be sure to pay attention to the details expressed in the LICENSE file.
ShoppinPal is a team of engineers and product guys with background in developing core systems at well-known Silicon Valley companies. We have deep expertise with Vend APIs. Several retailers use our ecommerce add-on, which works beautifully with Vend. We would love to assist you with any custom development needs that help you get the most out of Vend. We are listed in http://www.vendhq.com/expert-directory?region=0&service=12
To avoid getting confused between the globally installed version of vend-tools
and the one under active development, please use node index.js
from the project root directory to test your ongoing changes.