Add ip bindings to .env and Add stalwart-cli install script

This commit is contained in:
2026-09-14 20:51:29 +03:00
parent 1cd38af60e
commit 4c1fcc6d6f
7 changed files with 96 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'
$installerUrl = 'https://github.com/stalwartlabs/cli/releases/latest/download/stalwart-cli-installer.ps1'
$tempFile = Join-Path ([System.IO.Path]::GetTempPath()) 'stalwart-cli-installer.ps1'
try {
Invoke-WebRequest -Uri $installerUrl -OutFile $tempFile
& powershell.exe -NoProfile -ExecutionPolicy Bypass -File $tempFile
}
finally {
Remove-Item -LiteralPath $tempFile -Force -ErrorAction SilentlyContinue
}
if (Get-Command stalwart-cli -ErrorAction SilentlyContinue) {
stalwart-cli --version
}
else {
Write-Warning 'stalwart-cli was installed, but the current shell PATH does not include its install directory. Open a new terminal and run stalwart-cli --version.'
}