Install the Uiflow CLI package
To add or manage custom components to Uiflow, ensure you install the
Note: If your project already contains the npm package, you do not need to run these commands.
- 1.Open a command line window and navigate to your project folder.
- 2.If you don't have an existing custom components directory, enter the following commands to create one. This directory contains the required
componentssubdirectory for your custom components.Note: This walkthrough uses
my-custom-componentsas a sample name for the custom components directory. You can choose any directory name, but consider using dashes instead of spaces for command line navigation purposes.mkdir my-custom-components/componentscd my-custom-components
npm updateto ensure npm is up-to-date.
- 4.Enter the following commands to initialize npm and install the required TypeScript dependency and Uiflow CLI package.
- 5.If you don't have an existing components library for your project, run
npx uiflow createto initialize your components library.After the package is installed, the Uiflow CLI screen launches in the command line. Follow the on-screen prompts to create a new component library.