This feature is currently in Early Availability (EA) status. For more information, see our product lifecycle phases.
Install the UI Toolkit
You can install the UI Toolkit on either macOS or Windows.
The UI Toolkit has certain prerequisite programs that must be in place before you can install it. The Toolkit installation itself is performed from the command line.
A video tutorial of an installation is available here.
Prerequisites
Before you can install and use the UI Toolkit, you must install certain third-party programs as prerequisites. These include the Node.js environment and the node-sass library.
For Node.js installation, we recommend that you use the Node Version Manager (nvm
) application.
This application is a version manager for node.js, designed to be
installed per-user, and invoked per-shell. The nvm
application works on
any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on
Unix, MacOS, and Windows WSL.
Installing Node Version Manager
To install nvm
, run this command at the command line:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Other OS-Specific Prerequisites
After nvm
is installed, you can continue with the prerequisites listed
in the table below:
For MacOS | For Windows 10 |
---|---|
|
|
Install the UI Toolkit
After you install the necessary third-party programs, you can install the UI Toolkit through the command line.
To install the UI Toolkit, follow these steps:
- Open a command-line window.
- Run the command
npm install -g @appdirect/sfb-toolkit
. (This might take a few moments to finish).
Set up your workspace
After the UI Toolkit has been installed, you should have access to the sfb-toolkit
command. You'll be able to use
this command to setup a workspace folder. This folder structure will contain a sample theme, which you can use as a starting point for your own theme. All extensions you create will be added to a folder named extensions
.
During this setup you must specify the marketplace to which the toolkit will be linked. This enables you to draw on that marketplace for data during development.
To set up your workspace folder, follow these steps:
- Navigate to a folder in your file system where you want to setup your workspace folder.
- Type
sfb-toolkit setup <workspaceFolder>
and press Enter. (The<workspaceFolder>
is the top-level folder for your workspace which will contain the themes and extensions folders. - You'll be prompted to agree to the terms of the license
agreement. To continue, type
agree
and press Enter. - You'll be prompted to select one of the standard marketplace themes as a starting point for your first theme. The choices are classic and Plaza. This is a required step even for extensions when installing the toolkit for the first time.
- Use the arrow keys to highlight the base theme you want, and press Enter.
- Type a theme name and press Enter. A folder with the specified name is created on your computer. It includes all of the files required to create a custom theme. You are prompted to type the marketplace path.
- Type your full marketplace URL.
Press Enter. You can now import data from the specified marketplace when you Use the developer toolbar in your browser.important
Ensure that you include
https://
in the URL.
Congratulations! You have successfully installed the UI Toolkit, continue on by creating your first extension.
Was this page helpful?
Tell us more…
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!