the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add logout command to CLI

+20 -2
+18 -1
apps/cli/src/cmd/logout.ts
··· 1 - async function logout() {} 1 + import os from "node:os"; 2 + import path from "node:path"; 3 + import fs from "node:fs/promises"; 4 + import consola from "consola"; 5 + 6 + async function logout() { 7 + const tokenPath = path.join(os.homedir(), ".pocketenv", "token.json"); 8 + 9 + try { 10 + await fs.access(tokenPath); 11 + } catch { 12 + consola.log("Logged out successfully"); 13 + return; 14 + } 15 + 16 + await fs.unlink(tokenPath); 17 + consola.log("Logged out successfully"); 18 + } 2 19 3 20 export default logout;
+2 -1
apps/cli/src/index.ts
··· 8 8 import listSandboxes from "./cmd/list"; 9 9 import stop from "./cmd/stop"; 10 10 import createSandbox from "./cmd/create"; 11 + import logout from "./cmd/logout"; 11 12 12 13 const program = new Command(); 13 14 ··· 84 85 program 85 86 .command("logout") 86 87 .description("logout (removes session token)") 87 - .action(() => {}); 88 + .action(logout); 88 89 89 90 if (process.argv.length <= 2) { 90 91 program.help();