@promactinfo/moa-plugin-hubspot
v0.1.0
Published
Hubspot provider for moa cli
Readme
moa-plugin-hubspot
HubSpot integration plugin for the specialized MOA CLI.
Usage
This plugin is designed to be used with the moa CLI core.
Installation
# In your main moa-cli-core project (or user installation)
moa plugins install moa-plugin-hubspot
# OR link locally for development
moa plugins link /path/to/moa-plugin-hubspotAuthentication
MOA 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
Commands
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.
Development & Publishing
Local Development
Install Dependencies:
pnpm installBuild:
pnpm buildLink to Core: Go to your
moa-cli-coredirectory and run:./bin/dev.js plugins link ../moa-plugin-hubspot
Publishing
To publish this plugin to npm so others can install it:
Login to npm:
npm loginBuild and Prepare:
pnpm build npm version patch # or minor/majorPublish:
npm publish --access public
Once published, users can install it via moa plugins install moa-plugin-hubspot.
