@lizard-build/cli 4.0.22 → 4.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +3 -0
- package/README.md +6 -0
- package/dist/lib/updater.d.ts +1 -1
- package/dist/lib/updater.js +1 -1
- package/install.cmd +30 -0
- package/install.ps1 +27 -0
- package/install.sh +3 -0
- package/package.json +1 -1
- package/src/lib/updater.ts +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,12 @@ Every command is agent-readable: add `--json` for structured output, or run
|
|
|
16
16
|
curl -fsSL https://lizard.build/install.sh | bash
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
On Windows (PowerShell):
|
|
20
|
+
|
|
21
|
+
```powershell
|
|
22
|
+
irm https://lizard.build/api/cli/install.ps1 | iex
|
|
23
|
+
```
|
|
24
|
+
|
|
19
25
|
Or via npm:
|
|
20
26
|
|
|
21
27
|
```bash
|
package/dist/lib/updater.d.ts
CHANGED
package/dist/lib/updater.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Readable } from "node:stream";
|
|
|
4
4
|
import { join, dirname } from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
|
-
export const CURRENT_VERSION = "4.0.
|
|
7
|
+
export const CURRENT_VERSION = "4.0.23";
|
|
8
8
|
const RELEASES_API = "https://api.github.com/repos/lizard-build/lizard-cli/releases/latest";
|
|
9
9
|
const RELEASE_BASE = "https://github.com/lizard-build/lizard-cli/releases/latest/download";
|
|
10
10
|
/** Minimum gap between background update checks. */
|
package/install.cmd
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
setlocal
|
|
3
|
+
set "RELEASE_BASE=https://github.com/lizard-build/lizard-cli/releases/latest/download"
|
|
4
|
+
set "INSTALL_DIR=%USERPROFILE%\.lizard\bin"
|
|
5
|
+
set "BINARY=lizard-windows-x64.exe"
|
|
6
|
+
|
|
7
|
+
echo.
|
|
8
|
+
echo Lizard CLI installer
|
|
9
|
+
echo.
|
|
10
|
+
echo Downloading %BINARY%...
|
|
11
|
+
|
|
12
|
+
if not exist "%INSTALL_DIR%" mkdir "%INSTALL_DIR%"
|
|
13
|
+
curl -fsSL "%RELEASE_BASE%/%BINARY%" -o "%INSTALL_DIR%\lizard.exe"
|
|
14
|
+
if errorlevel 1 (
|
|
15
|
+
echo Error: Download failed: %RELEASE_BASE%/%BINARY%
|
|
16
|
+
exit /b 1
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
rem Add to the user PATH through PowerShell: setx cuts PATH at 1024 characters
|
|
20
|
+
rem and copies the system PATH into the user one.
|
|
21
|
+
powershell -NoProfile -ExecutionPolicy Bypass -Command "$dir = $env:INSTALL_DIR; $p = [Environment]::GetEnvironmentVariable('PATH', 'User'); if (($p -split ';') -notcontains $dir) { [Environment]::SetEnvironmentVariable('PATH', ((@($p, $dir) | Where-Object { $_ }) -join ';'), 'User') }"
|
|
22
|
+
|
|
23
|
+
echo.
|
|
24
|
+
echo Installed to %INSTALL_DIR%\lizard.exe
|
|
25
|
+
echo.
|
|
26
|
+
echo Run: lizard login
|
|
27
|
+
echo.
|
|
28
|
+
|
|
29
|
+
rem Make lizard available in this window too; endlocal would drop a plain set.
|
|
30
|
+
endlocal & set "PATH=%PATH%;%USERPROFILE%\.lizard\bin"
|
package/install.ps1
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
$ErrorActionPreference = 'Stop'
|
|
2
|
+
$RELEASE_BASE = "https://github.com/lizard-build/lizard-cli/releases/latest/download"
|
|
3
|
+
$INSTALL_DIR = "$env:USERPROFILE\.lizard\bin"
|
|
4
|
+
|
|
5
|
+
Write-Host ""
|
|
6
|
+
Write-Host "Lizard CLI installer" -ForegroundColor White
|
|
7
|
+
Write-Host ""
|
|
8
|
+
|
|
9
|
+
$BINARY = "lizard-windows-x64.exe"
|
|
10
|
+
Write-Host "Downloading $BINARY..." -ForegroundColor DarkGray
|
|
11
|
+
|
|
12
|
+
New-Item -ItemType Directory -Force -Path $INSTALL_DIR | Out-Null
|
|
13
|
+
$dest = "$INSTALL_DIR\lizard.exe"
|
|
14
|
+
Invoke-WebRequest -Uri "$RELEASE_BASE/$BINARY" -OutFile $dest
|
|
15
|
+
|
|
16
|
+
$currentPath = [System.Environment]::GetEnvironmentVariable("PATH", "User")
|
|
17
|
+
if ($currentPath -notlike "*$INSTALL_DIR*") {
|
|
18
|
+
[System.Environment]::SetEnvironmentVariable("PATH", "$currentPath;$INSTALL_DIR", "User")
|
|
19
|
+
$env:PATH += ";$INSTALL_DIR"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$VERSION = & $dest --version 2>$null | Select-Object -First 1
|
|
23
|
+
Write-Host ""
|
|
24
|
+
Write-Host "Lizard CLI v$VERSION installed" -ForegroundColor Green
|
|
25
|
+
Write-Host ""
|
|
26
|
+
Write-Host " Run: lizard login" -ForegroundColor Cyan
|
|
27
|
+
Write-Host ""
|
package/install.sh
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lizard-build/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.23",
|
|
4
4
|
"description": "Lizard CLI — deploy apps, databases and sandboxes to Lizard (lizard.build) from your terminal or your coding agent. Detects Go, Node, Python, Rust, Ruby, PHP, Java and static sites; adds Managed Postgres, Managed Redis and Managed Object Storage in one command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/lib/updater.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { join, dirname } from "node:path";
|
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
|
|
8
|
-
export const CURRENT_VERSION = "4.0.
|
|
8
|
+
export const CURRENT_VERSION = "4.0.23";
|
|
9
9
|
const RELEASES_API = "https://api.github.com/repos/lizard-build/lizard-cli/releases/latest";
|
|
10
10
|
const RELEASE_BASE = "https://github.com/lizard-build/lizard-cli/releases/latest/download";
|
|
11
11
|
|