@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.
@@ -101,4 +101,7 @@ jobs:
101
101
  bin/lizard-linux-x64
102
102
  bin/lizard-linux-arm64
103
103
  bin/lizard-windows-x64.exe
104
+ install.sh
105
+ install.ps1
106
+ install.cmd
104
107
  generate_release_notes: true
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
@@ -1,4 +1,4 @@
1
- export declare const CURRENT_VERSION = "4.0.22";
1
+ export declare const CURRENT_VERSION = "4.0.23";
2
2
  /**
3
3
  * True only when running as the Bun-compiled standalone binary. Under
4
4
  * npm/node, `process.execPath` is the *node* executable — self-update would
@@ -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.22";
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
@@ -1,4 +1,7 @@
1
1
  #!/bin/bash
2
+ # Served at https://lizard.build/install.sh. Every release attaches this file,
3
+ # install.ps1 and install.cmd, and the platform serves them from the latest
4
+ # release, so this repo holds the only copy.
2
5
  set -e
3
6
 
4
7
  BOLD="\033[1m"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lizard-build/cli",
3
- "version": "4.0.22",
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": {
@@ -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.22";
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