Skip to main content
Important

This feature is currently in Early Availability (EA) status. For more information, see our product lifecycle phases.

Local Extension Development

Developing and testing your extension locally is an essential step before publishing it to the Marketplace. In this guide, we will take you through the necessary steps to get your extension up and running on your local machine.

Before we get started, please ensure that you have the following prerequisites in place:

  • The UI Toolkit has been installed
  • An extension has been created

Enable Developer Mode

The first step in working locally is to enable developer mode. This mode allows you to run your extension on your local machine and test it before publishing it to the Marketplace. Developer mode can be found on the extensions listing page. Once enabled, you will have 8 hours to work on your extension from this computer. After 8 hours, you will need to re-enable developer mode.

Here are the steps to enable developer mode:

  1. Navigate to /admin/extensions on your Marketplace.
  2. Locate the extension you want to modify and click on the three dots, then select "Enable Developer Mode". Enable Developer Mode
  3. A message will confirm that developer mode has been enabled.
caution

The developer mode will be enabled for 8 hours and for this user only. Each developer needs to login and enable developer mode for themselves to work on extensions locally.

Start the UI Toolkit

With developer mode enabled for your extension, it's time to start the UI Toolkit and work on your extension locally.

Follow these steps:

  1. Open a command-line window (i.e. a terminal or command prompt).

  2. Navigate to the workspace folder you created with the UI Toolkit's setup command.

  3. cd to your extension inside of the extensions directory. For example, if your extension is called my-extension, you'll have find it under <your-workspace-name>/extensions/my-extension.

  4. Run the command npm run start

  5. The console should display a message indicating that the toolkit is running and the URL to access your extension locally.

    Welcome to your extension development environment!
    You can view access your extension local version using the following URL:
    https://engage19billing.test.devappdirect.me/app/desiredPath?devMode=true&appName=microuits
  6. Open this URL in your Marketplace to see your extension running locally.

  7. Any changes you make to your extension will automatically update in the browser.

That's it! You are now set to work on your extension locally.

Was this page helpful?