Skip to content

Stencil CLI and Postman

Installing the Stencil CLI, API requests with Postman [Video] (21:34)

Section titled “Installing the Stencil CLI, API requests with Postman [Video] (21:34)”

UPDATE: DevDocs have been updated for Installing the Stencil CLI extensively and resolve many of the errors referred to.

This meet we talked about the steps to install the Stencil CLI on macOS, Windows, and Linux (kind of), and some of the common pitfalls you run into.

Afterwards, we discussed the fields necessary to submit API requests in a REST client like Postman. Focusing on the BigCommerce API for examples, when making a POST call to the catalog/products/product_id/images endpoint, note the difference in Content-Type while using image_file instead of image_url.

Many supposed issues can be as simple as a nuance like that when making API requests. Be sure to check the requirements and example(s) when running into errors, especially if the error includes a field from the request.

Further reading:
http://hayne.net/MacDev/Notes/unixFAQ.html#shellStartup

https://scriptingosx.com/2017/04/about-bash_profile-and-bashrc-on-macos/