0.0.4 • Published 6 years ago
foxyfresh v0.0.4
FoxyFresh
Simple convenience CLI utility for refreshing FoxyCart templates through npm scripts.
Install
npm i foxyfesh -D
Usage
scripts: {
refresh:cart: 'foxyfresh -n cart -e https://myendpoint.foxycart.com/api -t apitoken
}
The script will cause Foxy to fetch a new copy of the cart template from your preset URL (in Foxy admin). You can optionally pass a url with the -u
option.
The token
and endpoint
params can be set through the FOXY_API_TOKEN and FOXY_API_ENDPOINT env variables if desired.
Options
-u or --url (optional)
URL to foxycart template
-t or --token (optional - defaults to process.env.FOXY_API_TOKEN)
Your FoxyCart API token
-e or --endpoint (optional - defaults to process.env.FOXY_API_ENDPOINT)
Your FoxyCart API endpoint url (ex: https://yourstore.foxycart.com/api)
-n or --name (required)
The name of the template to update. Must be one of 'cart', 'cart_include', 'checkout', 'receipt', 'html_email' or'email'.