demoloop-cli
v0.1.0
Published
Install and verify the Demoloop widget on your site
Downloads
7
Readme
demoloop-cli
Install and verify the Demoloop widget — similar to hs get-started for HubSpot.
Publish (maintainers)
npm login
pnpm cli:publishInstall
npm install -g demoloop-cliFrom the monorepo:
pnpm dl get-startedCommands
| Command | Description |
|---------|-------------|
| dl get-started | Print the full setup checklist |
| dl get-started --profile sdk | Solution architect / SDK showcase path (preview) |
| dl init | Interactive — saves .demoloop.json and prints your snippet |
| dl snippet | Print the script tag from config |
| dl verify https://yoursite.com | Confirm the widget is on your page |
Example
dl init --key dl_your_workspace_key --website https://acme.com
dl snippet
dl verify https://acme.comConfig (.demoloop.json)
{
"profile": "demo",
"widgetKey": "dl_...",
"origin": "https://getdemoloop.com",
"websiteUrl": "https://acme.com",
"mode": "modal",
"label": "See it live",
"position": "right"
}Add .demoloop.json to .gitignore if it contains staging keys.
Profiles
- demo (default) — live product demo widget for marketing sites
- sdk — SDK & solution architect showcase: different widget label, agent prompts, onboarding preset, and scenes (Quickstart, API, Architecture)
Set SDK mode in Demoloop onboarding step 1 or patch experienceProfile: "sdk" on your workspace. The CLI --profile sdk saves local config; the workspace setting drives runtime behavior.
dl get-started --profile sdk
dl init --profile sdk --key dl_... --website https://docs.yourplatform.comHubSpot (optional)
Customers connect HubSpot in the Demoloop dashboard (OAuth). HubSpot CLI is only needed if you build on HubSpot:
npm install -g @hubspot/cli
hs init
hs get-startedDemoloop platform OAuth app setup: see INTEGRATIONS.md.
