convex
Version:
Client for the Convex Cloud
21 lines (20 loc) • 746 B
JavaScript
;
import { Command } from "@commander-js/extra-typings";
import { logFinishedStep, oneoffContext } from "../bundler/context.js";
import { recursivelyDelete } from "./lib/fsUtils.js";
import { globalConfigPath } from "./lib/utils/globalConfig.js";
export const logout = new Command("logout").description("Log out of Convex on this machine").allowExcessArguments(false).action(async () => {
const ctx = await oneoffContext({
url: void 0,
adminKey: void 0,
envFile: void 0
});
if (ctx.fs.exists(globalConfigPath())) {
recursivelyDelete(ctx, globalConfigPath());
}
logFinishedStep(
ctx,
"You have been logged out of Convex.\n Run `npx convex dev` to log in."
);
});
//# sourceMappingURL=logout.js.map