Quickstart
Last updated
Last updated
To install in your node project, you can run:
After installation, you can run the following cli command to list all commands and options:
Alternatively, you can install globally using the following command:
Note: Installing globally will allow you to run the "peanut" cli command anywhere. This is helpful when you have multiple projects with different source directories.
You can download the full source from our public GitHub repo using or go to our for cloning instructions similiar to this:
The Peanut for Wordpress application requires the Peanut Wordpress plugin which enables the framework for loading components and blocks built with the app.
To create a configuration file (peanut.config.json) and element subfolders for your project within your current working directory, you can use the setup CLI command:
To run the application, you'll need to have the following minimum version of Node.js required installed:
To start building your blocks, plugins, components, and themes, you can run the cli:
You can get a list of CLI commands and options by running the help command:
To trigger a production-ready compilation of your work (ie. minification of code, etc), you can add the following environment vars to your commands:
Permalinks are the permanent URLs of your Wordpress content. At the moment, Peanut For Wordpress requires that Permalinks to set to something other than the default "Plain". See "" for instructions on how to change your permalink settings.
Script Debugging must be set to true when in development mode for Peanut editor scripts to function. See for instructions on how to turn on in your Wordpress development environment.
In order to use our Whiteboard component prototyping application, you'll need to type to either 'local' or 'development'.
You can obtain the plugin via the :
Once cloned, you can copy it to your local Wordpress content directory (wp-content/plugins/). You'll need to then go into your Wordpress Admin and .
For installation, we recommend using or to manage your Node.js versions. If you are not using a package manager, see the for installers and binaries.
For more examples, see "".