# Cross-Platform Script Workflows

## 1) Probe toolchain availability

```powershell
python scripts/diag.py probe --tool dotnet --json
python scripts/diag.py probe --tool python --json
python scripts/diag.py probe --tool node --json
python scripts/diag.py probe --tool npm --json
python scripts/diag.py probe --tool cargo --json
python scripts/diag.py probe --tool tauri --json
python scripts/diag.py probe --tool git --json
python scripts/diag.py probe --tool docker --json
```

## Shell bootstrap (cross-platform)

```powershell
python scripts/dev_shell.py export --shell pwsh --json
python scripts/dev_shell.py doctor
```

## 2) Build and run SDT

```powershell
python scripts/dotnet-min.py build
dotnet run --project DevTool.csproj
```

## 3) Run migration gate

```powershell
python scripts/migration-gate.py
```

## 4) Manage NuGet cache

```powershell
python scripts/nuget-export-cache.py --output-zip nuget-cache-export.zip
python scripts/nuget-import-cache.py --input-zip nuget-cache-export.zip
```

## 5) Clean Node modules

```powershell
python scripts/npm-clean.py --working-dir .
```

## 6) Build app/gateway bundles

```powershell
python scripts/publish-app.py --target web
python scripts/publish-sidecar.py --project path/to/sidecar.csproj
python scripts/publish-webgateway.py --project path/to/gateway.csproj --skip-web-assets
python scripts/publish-output.py --dry-run
python scripts/sync-output.py
```
