Hi team,
Please address the following issues:
Part 1: Data Migration Query (Internal/Reframed)
Subject: Process for migrating HubSpot configuration and data between Developer Accounts
We currently have two HubSpot developer accounts: one Free and one Paid.
Our automation suite currently runs daily against a test account nested under the Free developer account. However, we are facing the 90-day enterprise expiry limitation on these test accounts, even when they are generated from a paid developer tier.
Questions:
What are the recommended steps to migrate our standard and custom object definitions, along with their associated record data, from the Free account to the Paid account?
What is the most efficient way to transfer these custom objects and data specifically into a new test account under the Paid developer portal?
Part 2: HubSpot Support Ticket (Reframed & Polished)
Subject: HubSpot CLI Authentication Failure and Project Creation Issues for OAuth App
We are currently attempting to build a public OAuth app using the HubSpot Developer platform and the HubSpot CLI. Our ultimate goal is to configure a pure 3-legged OAuth flow with specific CRM scopes, utilizing the app’s client_id and client_secret within our external integration platform.
We are closely following the standard project creation flow documented in your guide:
npm install -g @hubspot/cli (Successfully installed version 8.9.1)
hs account auth
hs project create
The Issue
Although the browser login flow completes successfully during hs account auth, the CLI fails to register the authentication.
Running hs account list returns the following error:
Bash
[ERROR] Your HubSpot config file is invalid. Please fix the following errors:
- No accounts found
Checking the local configuration file (C:\Users\\.hscli\config.yml) reveals that the accounts array remains empty:
YAML
accounts: []
Because the CLI cannot find an authenticated account, our project creation command fails immediately:
Bash
hs project create --name hubspot-oauth-app --project-base app --distribution private --auth oauth
Error: No accounts found
Questions for Clarification
To help us bypass this blocker and ensure we are architecting this correctly, could you please clarify the following:
CLI Authentication: Does hs account auth now require a Personal Access Key for developer/paid portals instead of just the standard browser-based login?
App Creation Workflow: Should a public/OAuth app project be created locally and uploaded via hs project upload from a main Developer Account, or should the app itself be created via the UI first?
App Deployment: Once a project is uploaded, should the resulting app be installed into a developer test account or a standard customer account for testing?
Minimal Configuration: For a pure OAuth integration that does not utilize HubSpot UI elements (cards, functions, webhooks, etc.), is a minimal private OAuth app project structure sufficient?
Credentials Retrieval: Where exactly do we retrieve the generated client_id and client_secret after creating or uploading the project via the CLI?
Conclusion
We are currently blocked because the CLI config file is not updating after a successful browser login. Please advise on how to resolve this authentication issue and confirm the recommended workflow for setting up a new OAuth app via the CLI.
