···11+export async function listEnvs() {}
22+33+export async function putEnv() {}
44+55+export async function deleteEnv() {}
+3
apps/cli/src/cmd/rm.ts
···11+async function deleteSandbox(id: string) {}
22+33+export default deleteSandbox;
+5
apps/cli/src/cmd/secret.ts
···11+export async function listSecrets() {}
22+33+export async function putSecret() {}
44+55+export async function deleteSecret() {}
+58
apps/cli/src/index.ts
···99import stop from "./cmd/stop";
1010import createSandbox from "./cmd/create";
1111import logout from "./cmd/logout";
1212+import deleteSandbox from "./cmd/rm";
1313+import { deleteSecret, listSecrets, putSecret } from "./cmd/secret";
1414+import { deleteEnv, listEnvs, putEnv } from "./cmd/env";
12151316const program = new Command();
1417···8689 .command("logout")
8790 .description("logout (removes session token)")
8891 .action(logout);
9292+9393+program
9494+ .command("rm")
9595+ .aliases(["delete", "remove"])
9696+ .argument("<sandbox>", "the sandbox to delete")
9797+ .description("delete the given sandbox")
9898+ .action(deleteSandbox);
9999+100100+const secret = program.command("secret").description("manage secrets");
101101+102102+secret
103103+ .command("put")
104104+ .argument("<sandbox>", "the sandbox to put the secret in")
105105+ .argument("<key>", "the key of the secret")
106106+ .description("put a secret in the given sandbox")
107107+ .action(putSecret);
108108+109109+secret
110110+ .command("list")
111111+ .aliases(["ls"])
112112+ .argument("<sandbox>", "the sandbox to list secrets for")
113113+ .description("list secrets in the given sandbox")
114114+ .action(listSecrets);
115115+116116+secret
117117+ .command("delete")
118118+ .aliases(["rm", "remove"])
119119+ .argument("<sandbox>", "the sandbox to delete secrets from")
120120+ .argument("<key>", "the key of the secret to delete")
121121+ .description("delete a secret from the given sandbox")
122122+ .action(deleteSecret);
123123+124124+const env = program.command("env").description("manage environment variables");
125125+126126+env
127127+ .command("put")
128128+ .argument("<sandbox>", "the sandbox to put the environment variable in")
129129+ .argument("<key>", "the key of the environment variable")
130130+ .description("put an environment variable in the given sandbox")
131131+ .action(putEnv);
132132+133133+env
134134+ .command("list")
135135+ .aliases(["ls"])
136136+ .argument("<sandbox>", "the sandbox to list environment variables for")
137137+ .description("list environment variables in the given sandbox")
138138+ .action(listEnvs);
139139+140140+env
141141+ .command("delete")
142142+ .aliases(["rm", "remove"])
143143+ .argument("<sandbox>", "the sandbox to delete environment variables from")
144144+ .argument("<key>", "the key of the environment variable to delete")
145145+ .description("delete an environment variable from the given sandbox")
146146+ .action(deleteEnv);
8914790148if (process.argv.length <= 2) {
91149 program.help();