Files
cnb/test/common.ts
2025-12-04 20:05:56 +08:00

14 lines
365 B
TypeScript

import { CNB } from "../src";
import dotenv from "dotenv";
dotenv.config();
const cnb = new CNB(process.env.CNB_TOKEN || "");
const worksaceList = await cnb.workspace.list();
// console.log("worksaceList", worksaceList);
const sn = 'cnb-0eg-1jbkjj615-001'
const worksace = await cnb.workspace.getDetail('kevisual/node24', sn)
console.log("worksace", worksace);