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 env, secret, and rm CLI commands

+71
+5
apps/cli/src/cmd/env.ts
··· 1 + export async function listEnvs() {} 2 + 3 + export async function putEnv() {} 4 + 5 + export async function deleteEnv() {}
+3
apps/cli/src/cmd/rm.ts
··· 1 + async function deleteSandbox(id: string) {} 2 + 3 + export default deleteSandbox;
+5
apps/cli/src/cmd/secret.ts
··· 1 + export async function listSecrets() {} 2 + 3 + export async function putSecret() {} 4 + 5 + export async function deleteSecret() {}
+58
apps/cli/src/index.ts
··· 9 9 import stop from "./cmd/stop"; 10 10 import createSandbox from "./cmd/create"; 11 11 import logout from "./cmd/logout"; 12 + import deleteSandbox from "./cmd/rm"; 13 + import { deleteSecret, listSecrets, putSecret } from "./cmd/secret"; 14 + import { deleteEnv, listEnvs, putEnv } from "./cmd/env"; 12 15 13 16 const program = new Command(); 14 17 ··· 86 89 .command("logout") 87 90 .description("logout (removes session token)") 88 91 .action(logout); 92 + 93 + program 94 + .command("rm") 95 + .aliases(["delete", "remove"]) 96 + .argument("<sandbox>", "the sandbox to delete") 97 + .description("delete the given sandbox") 98 + .action(deleteSandbox); 99 + 100 + const secret = program.command("secret").description("manage secrets"); 101 + 102 + secret 103 + .command("put") 104 + .argument("<sandbox>", "the sandbox to put the secret in") 105 + .argument("<key>", "the key of the secret") 106 + .description("put a secret in the given sandbox") 107 + .action(putSecret); 108 + 109 + secret 110 + .command("list") 111 + .aliases(["ls"]) 112 + .argument("<sandbox>", "the sandbox to list secrets for") 113 + .description("list secrets in the given sandbox") 114 + .action(listSecrets); 115 + 116 + secret 117 + .command("delete") 118 + .aliases(["rm", "remove"]) 119 + .argument("<sandbox>", "the sandbox to delete secrets from") 120 + .argument("<key>", "the key of the secret to delete") 121 + .description("delete a secret from the given sandbox") 122 + .action(deleteSecret); 123 + 124 + const env = program.command("env").description("manage environment variables"); 125 + 126 + env 127 + .command("put") 128 + .argument("<sandbox>", "the sandbox to put the environment variable in") 129 + .argument("<key>", "the key of the environment variable") 130 + .description("put an environment variable in the given sandbox") 131 + .action(putEnv); 132 + 133 + env 134 + .command("list") 135 + .aliases(["ls"]) 136 + .argument("<sandbox>", "the sandbox to list environment variables for") 137 + .description("list environment variables in the given sandbox") 138 + .action(listEnvs); 139 + 140 + env 141 + .command("delete") 142 + .aliases(["rm", "remove"]) 143 + .argument("<sandbox>", "the sandbox to delete environment variables from") 144 + .argument("<key>", "the key of the environment variable to delete") 145 + .description("delete an environment variable from the given sandbox") 146 + .action(deleteEnv); 89 147 90 148 if (process.argv.length <= 2) { 91 149 program.help();