You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
### Added
12
12
13
13
-`apm install` now automatically discovers and deploys local `.apm/` primitives (skills, instructions, agents, prompts, hooks, commands) to target directories, with local content taking priority over dependencies on collision (#626, #644)
14
+
- Add `temp-dir` configuration key (`apm config set temp-dir PATH`) to override the system temporary directory, resolving `[WinError 5] Access is denied` in corporate Windows environments (#629)
Copy file name to clipboardExpand all lines: docs/src/content/docs/reference/cli-commands.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1345,6 +1345,7 @@ apm config
1345
1345
- Global configuration
1346
1346
- APM CLI version
1347
1347
- `auto-integrate`setting
1348
+
- `temp-dir`setting (when configured)
1348
1349
1349
1350
**Examples:**
1350
1351
```bash
@@ -1363,6 +1364,7 @@ apm config get [KEY]
1363
1364
**Arguments:**
1364
1365
- `KEY` (optional) - Configuration key to retrieve. Supported keys:
1365
1366
- `auto-integrate`- Whether to automatically integrate `.prompt.md` files into AGENTS.md
1367
+
- `temp-dir`- Custom temporary directory for clone/download operations
1366
1368
1367
1369
If `KEY` is omitted, displays all configuration values.
1368
1370
@@ -1386,6 +1388,7 @@ apm config set KEY VALUE
1386
1388
**Arguments:**
1387
1389
- `KEY` - Configuration key to set. Supported keys:
1388
1390
- `auto-integrate`- Enable/disable automatic integration of `.prompt.md` files
1391
+
- `temp-dir`- Set a custom temporary directory path
1389
1392
- `VALUE` - Value to set. For boolean keys, use: `true`, `false`, `yes`, `no`, `1`, `0`
1390
1393
1391
1394
**Configuration Keys:**
@@ -1411,6 +1414,30 @@ apm config set auto-integrate yes
1411
1414
apm config set auto-integrate 1
1412
1415
```
1413
1416
1417
+
**`temp-dir`** - Override the system temporary directory
1418
+
- **Type:** String (directory path)
1419
+
- **Default:** System temp directory (not stored)
1420
+
- **Description:** Set a custom temporary directory for clone and download operations. Useful in corporate Windows environments where endpoint security software restricts access to `%TEMP%`, causing `[WinError 5] Access is denied`.
1421
+
- **Resolution order:** `APM_TEMP_DIR` environment variable > `temp_dir` in `~/.apm/config.json` > system default.
1422
+
- **Use Cases:**
1423
+
- Set when the default system temp directory is restricted or unavailable
1424
+
- Use the `APM_TEMP_DIR` environment variable for CI pipelines or per-session overrides
1425
+
1426
+
**Examples:**
1427
+
```bash
1428
+
# Set a custom temp directory (Windows)
1429
+
apm config set temp-dir C:\apm-temp
1430
+
1431
+
# Set a custom temp directory (macOS/Linux)
1432
+
apm config set temp-dir /tmp/apm-work
1433
+
1434
+
# Check the current temp-dir setting
1435
+
apm config get temp-dir
1436
+
1437
+
# Or use the environment variable instead
1438
+
export APM_TEMP_DIR=/tmp/apm-work
1439
+
```
1440
+
1414
1441
## Runtime Management (Experimental)
1415
1442
1416
1443
### `apm runtime` (Experimental) - Manage AI runtimes
0 commit comments