diff --git a/file.ts b/file.ts new file mode 100644 index 000000000..70ab34a41 --- /dev/null +++ b/file.ts @@ -0,0 +1,8 @@ +const { ProfileInfo } = require("@zowe/imperative"); +(async () => { + const profInfo = new ProfileInfo("zowe"); + await profInfo.readProfilesFromDisk(); + const upd = { profileName: "lpar1.test", profileType: "zosmf" }; + await profInfo.updateProperty({ ...upd, property: "user", value: "abc", setSecure: false }); + await profInfo.updateProperty({ ...upd, property: "password", value: "aa", setSecure: false }); +})(); \ No newline at end of file