@hs-x/hubspot-cli
v0.2.7
Published
Dev-time HubSpot developer-account client and dev-session driver. Counterpart to @hs-x/hubspot — wraps @hubspot/local-dev-lib for CLI and control-plane executors.
Readme
@hs-x/hubspot-cli
@hs-x/hubspot-cli is the dev-time counterpart to
@hs-x/hubspot. Where
@hs-x/hubspot is the Worker-safe client an app uses at runtime to talk to a
portal, this package talks to a HubSpot developer account from a developer
machine: it uploads, deploys, and polls HubSpot projects, drives the HubSpot
dev-sessions loop, and manages schemas, release flags, and card-view
migrations.
This package is CLI-internal. App authors do not install or import it; the
hs-x CLI (installed via npm i -g @hs-x/cli) and the control-plane deploy
executors use it under the hood when you run hs-x dev and hs-x deploy.
What it wraps
createHubSpotDeveloperClient(...) builds a HubSpotDeveloperClient on top of
HubSpot's official local-dev libraries:
| Library | Used for |
| --- | --- |
| @hubspot/local-dev-lib | Config/auth, project upload, build and deploy status, app lookup |
| @hubspot/project-parsing-lib | Reading and validating HubSpot project structure |
| @hubspot/ui-extensions-dev-server | The UI-extension dev server behind the local card loop |
Because it pulls in those libraries and Node built-ins, it is not Worker-safe.
Runtime code that needs to reach a portal should keep using
@hs-x/hubspot.
Part of HS-X
HS-X is a leaveable, type-safe HubSpot app framework on Cloudflare Workers. Start with the CLI:
npm i -g @hs-x/cli
hs-x init myappSee @hs-x/cli and the docs at
hs-x.dev/docs.
License
Apache-2.0
