UNPKG

newo

Version:

NEWO CLI: Professional command-line tool with modular architecture for NEWO AI Agent development. Features account migration, integration management, webhook automation, AKB knowledge base, project attributes, sandbox testing, IDN-based file management, r

19 lines 943 B
/** * Meta command handler - get project metadata */ import { makeClient, getProjectMeta } from '../../api.js'; import { getValidAccessToken } from '../../auth.js'; import { requireSingleCustomer } from '../customer-selection.js'; export async function handleMetaCommand(customerConfig, args, verbose) { const selectedCustomer = requireSingleCustomer(customerConfig, args.customer); if (!selectedCustomer.projectId) { console.error(`No project ID configured for customer ${selectedCustomer.idn}`); console.error(`Set NEWO_CUSTOMER_${selectedCustomer.idn.toUpperCase()}_PROJECT_ID in your .env file`); process.exit(1); } const accessToken = await getValidAccessToken(selectedCustomer); const client = await makeClient(verbose, accessToken); const meta = await getProjectMeta(client, selectedCustomer.projectId); console.log(JSON.stringify(meta, null, 2)); } //# sourceMappingURL=meta.js.map