UNPKG

@arc-fusion/cli

Version:

CLI for running Arc Fusion on your local machine

13 lines (10 loc) 1.15 kB
# Introduction The Fusion CLI APIs enable developers to use Arc Services, such as Photo Center and Websked, in their local development without Trident configurations. This gives developers a better sense of how Arc integrations will work with their components before they deploy their bundle to remote environments. The env variables `CONTENT_BASE` and `ARC_ACCESS_TOKEN` are used to route to Arc services with BEARER authentication. Developers already use these two env variables to their bundle for content sources, so there are no additional setup for bundle developers. # Proxy Infrastructure ![Screenshot](screenshot.png) # Local Setup for PageBuilder Developer 1. Clone https://github.com/WPMedia/fusion-cli from GitHub 2. Inside your local fusion-cli folder, run npm link 3. Inside your local fusion bundle (with all your blocks, layouts, etc), run npm link @arc-fusion/cli 4. Add `CONTENT_BASE`, `ARC_ACCESS_TOKEN`, and `FUSION_CLI_REPO` to your bundle's .env. `FUSION_CLI_REPO` variable is required, because it will allow you to make updates to the Fusion CLI APIs and test locally. 5. Run `npx fusion start` from your bundle directory