HubSpot integration plugin for the specialized MOA CLI.
This plugin is designed to be used with the moa CLI core.
# In your main moa-cli-core project (or user installation)
moa plugins install @promactinfo/moa-plugin-hubspot
# OR link locally for development
moa plugins link /path/to/moa-plugin-hubspotMOA uses a unified authentication system. For HubSpot, we currently support Private App Tokens.
- Create a Private App in your HubSpot Portal (Settings > Integrations > Private Apps).
- Select scopes (e.g.,
crm.objects.contacts.read,crm.objects.deals.read). - Copy the Access Token.
- Run:
Follow the prompts to secure your token.
moa hubspot:auth
moa hubspot:auth- Setup authentication for HubSpot.moa hubspot:contacts- List recent contacts from HubSpot.moa hubspot:contacts --json- Output contacts in JSON format for piping.
-
Install Dependencies:
pnpm install
-
Build:
pnpm build
-
Link to Core: Go to your
moa-cli-coredirectory and run:./bin/dev.js plugins link ../moa-plugin-hubspot
To publish this plugin to npm so others can install it:
-
Login to npm:
npm login
-
Build and Prepare:
pnpm build npm version patch # or minor/major -
Publish:
npm publish --access public
Once published, users can install it via moa plugins install @promactinfo/moa-plugin-hubspot.