From e6ce287ce21a177978f3829e5a1e338f7afc2770 Mon Sep 17 00:00:00 2001
From: "aspire-repo-bot[bot]"
<268009190+aspire-repo-bot[bot]@users.noreply.github.com>
Date: Fri, 27 Nov 2026 05:49:16 +0000
Subject: [PATCH] Document CLI private temporary storage
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
.../src/content/docs/get-started/troubleshooting.mdx | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/frontend/src/content/docs/get-started/troubleshooting.mdx b/src/frontend/src/content/docs/get-started/troubleshooting.mdx
index 3c1597528..0ddd84607 100644
--- a/src/frontend/src/content/docs/get-started/troubleshooting.mdx
+++ b/src/frontend/src/content/docs/get-started/troubleshooting.mdx
@@ -278,6 +278,18 @@ Persisted Aspire CLI logs are stored in the Aspire home directory's `logs` folde
+### CLI temporary files
+
+The Aspire CLI writes its temporary files to a private area in the Aspire home directory instead of the shared system temp directory. Each CLI process allocates a session folder at `/tmp//`, where `` defaults to `~/.aspire`.
+
+- On macOS and Linux, directories are created with `0700` permissions and files with `0600` permissions.
+- On Windows, directories are created with an owner-only ACL that doesn't inherit permissions.
+- The `tmp` folder and everything below it are validated. If the CLI finds links or permissions broader than owner-only, it reports an error with guidance instead of silently repairing them.
+- If no usable Aspire home directory exists, the CLI reports an error and doesn't fall back to the system temp directory.
+- Set the `ASPIRE_PRESERVE_TEMP_FILES` environment variable to a truthy value to write a `.preserve` marker in the session folder so that future cleanup honors it.
+
+Session folders aren't automatically deleted yet, so you can remove old folders under `/tmp/` manually when no CLI process is running.
+
## Building from source
### "Failed to copy CLI files" error on macOS or Linux