#Adding a Block CLI to an existing Block app

5 messages · Page 1 of 1 (latest)

pliant pecan
#

I created an app using Wix Blocks and later added dashboards using the Blocks CLI. Now I want to add a new block extension using the CLI approach.

I'm following the instructions at https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/code-in-blocks/about-the-blocks-cli-integration-for-widgets, but when the block editor opens, it doesn't activate CLI mode.

How can I activate CLI mode for the block editor? I need to be able to add block extensions to my CLI-integrated app, even though it was originally built using the visual Blocks interface.

#

Ticket: 180994262

quiet quest
#

Npm create @wix/app@latest > add a extension to a existing app > widget > blocks widget

#

Pre warning though - I had a issue last night where once I connected a CLI/Blocks widget I could not get the blocks editor out of CLI mode when wanting to add/edit extensions

pliant pecan
#

@quiet quest where did you find those steps?

I followed the steps below but I does not open the block editor as:

  • created the app
  • runs npm run generate -- --type=SITE_WIDGET
  • then npm run dev -> b to open the block editor

but it opens in block mode no CLI mode 🙁

What am I missing?