{"id":27043,"library":"heroui-pro","title":"HeroUI CLI — auth, cache, CDN logic","description":"HeroUI CLI (v1.0.0-beta.4) is a beta release providing shared authentication, cache management, and CDN logic for HeroUI ecosystem. Released by JetBridge as a companion CLI tool, it offers unified command-line interfaces for auth token refresh, cache flushing, and CDN asset management. Currently unstable (pre-1.0), with breaking changes likely between betas. Differentiator: integrated CLI for HeroUI's proprietary CDN and auth services.","status":"active","version":"1.0.0-beta.4","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install heroui-pro","lang":"bash","label":"npm"},{"cmd":"yarn add heroui-pro","lang":"bash","label":"yarn"},{"cmd":"pnpm add heroui-pro","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only package; use dynamic import() if needed in CommonJS.","wrong":"const { login } = require('heroui-pro')","symbol":"login","correct":"import { login } from 'heroui-pro'"},{"note":"Named export, not default.","wrong":"import cache from 'heroui-pro'","symbol":"cache","correct":"import { cache } from 'heroui-pro'"},{"note":"Export name is camelCase, not uppercase.","wrong":"import { CDN } from 'heroui-pro'","symbol":"cdnupload","correct":"import { cdnupload } from 'heroui-pro'"}],"quickstart":{"code":"import { login, cache } from 'heroui-pro';\n\nasync function main() {\n  const token = await login({\n    username: process.env.HEROU_USER ?? '',\n    password: process.env.HEROU_PASS ?? '',\n  });\n  console.log('Logged in:', token);\n\n  await cache.flush('my-key', { region: 'us-east-1' });\n  console.log('Cache flushed');\n}\n\nmain().catch(console.error);","lang":"typescript","description":"Shows login with env credentials and cache flush using the HeroUI CLI library."},"warnings":[{"fix":"Pin exact version and test thoroughly on each upgrade.","message":"API surface is unstable; functions and signatures may change between beta versions.","severity":"breaking","affected_versions":">=1.0.0-beta.0"},{"fix":"Replace import of 'refreshAuth' with 'login'.","message":"The 'refreshAuth' export is deprecated in favor of 'login'.","severity":"deprecated","affected_versions":">=1.0.0-beta.3"},{"fix":"Use axios interceptor or custom wrapper to normalize errors.","message":"All async functions reject with a proprietary error object, not instances of Error.","severity":"gotcha","affected_versions":">=1.0.0-beta.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use named import: import { login } from 'heroui-pro'","cause":"Using default import from named export.","error":"TypeError: (0 , heroui_pro.login) is not a function"},{"fix":"Run: npm install heroui-pro@1.0.0-beta.4","cause":"Package not installed or wrong import path.","error":"Error: Cannot find module 'heroui-pro'"},{"fix":"Use import statement or dynamic import('heroui-pro')","cause":"Package is ESM-only, but using require().","error":"ERR_REQUIRE_ESM: require() of ES Module not supported"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}