This guide walks you through setting up the toolchain required to develop, preview, and upload custom Flowable form components.
Install the following tools before proceeding:
-
Node.js 18+ — nodejs.org/en/download
-
Yarn (modern, 2.x+)
npm install -g corepack
You won't need to run Yarn commands manually — the Flowable CLI handles that for you.
-
Flowable CLI
npm install -g flowable-cli
The @flowable npm packages are hosted in Flowable's Artifactory instance.
- Go to https://flowable.jfrog.io/ui/packages
- Log in with the credentials from your
settings.xmlor as provided by your instructor. - Click the avatar in the top right → "Set Me Up"
- Under Package Type, select npm
- Click "Search for a repository" and select
flowable-npm-all - Make sure "Generate Token" is selected
- Click "Generate Token & Create Instructions"
- Copy the generated NPM registry token — you'll need it in the next step.
Open a terminal in the folder where you cloned the training project (or wherever you want your component library to live).
flowable loginWhen prompted:
| Prompt | Value |
|---|---|
| User | Same username as Artifactory (from settings.xml or your instructor) |
| Token | The NPM token generated in Step 1 |
Press Enter. You are now authenticated against Artifactory and have access to @flowable packages.
Tip: If you run into scope resolution issues later, check the .npmrc file in your user folder. It should look similar to this:
//flowable.jfrog.io/artifactory/api/npm/flowable-npm/:_authToken=YOUR_TOKEN @flowable:registry=https://flowable.jfrog.io/artifactory/api/npm/flowable-npm/
The CLI also needs to communicate with your running Flowable Design instance to push component definitions and generate types.
Keep the console open from the previous step and follow the prompts:
| Prompt | Value |
|---|---|
| Hosting location | http://localhost:8091 |
| Environment name | local |
The CLI will pause and wait for a Design access token.
- Make sure Flowable Design is running on port
8091 - Log in at http://localhost:8091 with
admin/test - Click the avatar in the top right → "Tokens"
(or navigate directly to http://localhost:8091/#/token-mgmt) - Click "New Access Token"
- Name:
Local Development - Valid for:
1 year
- Name:
- Click Create and copy the token
- Paste it back into your console and press Enter
You are now fully authenticated. Your CLI configuration is saved to:
- macOS/Linux:
~/.flowable/cli-config.yml - Windows:
C:\Users\<your_user>\.flowable\cli-config.yml
Continue with Custom Components – Creating a Component to initialise your component library and build the Credit Card widget.