@anvil-works/anvil-cli 0.5.1 → 0.5.2

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/README.md CHANGED
@@ -16,19 +16,19 @@ A CLI tool for syncing Anvil apps between your local filesystem and the Anvil ID
16
16
  ### macOS/Linux
17
17
 
18
18
  ```bash
19
- curl -fsSL https://anvil.works/install/anvil-cli/install.sh | sh
19
+ curl -fsSL https://anvil.works/install-cli.sh | sh
20
20
  ```
21
21
 
22
22
  ### Windows PowerShell
23
23
 
24
24
  ```powershell
25
- irm https://anvil.works/install/anvil-cli/install.ps1 | iex
25
+ irm https://anvil.works/install-cli.ps1 | iex
26
26
  ```
27
27
 
28
28
  ### Windows CMD
29
29
 
30
30
  ```cmd
31
- curl -fsSL https://anvil.works/install/anvil-cli/install.cmd -o install.cmd && install.cmd && del install.cmd
31
+ curl -fsSL https://anvil.works/install-cli.cmd -o install.cmd && install.cmd && del install.cmd
32
32
  ```
33
33
 
34
34
  ### Manual Fallback
package/dist/cli.js CHANGED
@@ -52288,9 +52288,9 @@ var __webpack_exports__ = {};
52288
52288
  console.log(chalk_source.cyan("To update, run one of the following commands:"));
52289
52289
  console.log();
52290
52290
  if ("win32" === process.platform) {
52291
- console.log(chalk_source.gray(" PowerShell: ") + chalk_source.white("irm https://anvil.works/install/anvil-cli/install.ps1 | iex"));
52292
- console.log(chalk_source.gray(" CMD: ") + chalk_source.white("curl -fsSL https://anvil.works/install/anvil-cli/install.cmd -o install.cmd && install.cmd && del install.cmd"));
52293
- } else console.log(chalk_source.gray(" macOS/Linux: ") + chalk_source.white("curl -fsSL https://anvil.works/install/anvil-cli/install.sh | sh"));
52291
+ console.log(chalk_source.gray(" PowerShell: ") + chalk_source.white("try { irm https://anvil.works/install-cli.ps1 | iex } catch { npm install -g @anvil-works/anvil-cli@latest }"));
52292
+ console.log(chalk_source.gray(" CMD: ") + chalk_source.white("curl -fsSL https://anvil.works/install-cli.cmd -o install.cmd && install.cmd && del install.cmd || npm install -g @anvil-works/anvil-cli@latest"));
52293
+ } else console.log(chalk_source.gray(" macOS/Linux: ") + chalk_source.white("curl -fsSL https://anvil.works/install-cli.sh | sh || npm install -g @anvil-works/anvil-cli@latest"));
52294
52294
  console.log(chalk_source.gray(" npm: ") + chalk_source.white("npm update -g @anvil-works/anvil-cli"));
52295
52295
  console.log(chalk_source.gray(" pnpm: ") + chalk_source.white("pnpm update -g @anvil-works/anvil-cli"));
52296
52296
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvil-works/anvil-cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "CLI tool for developing Anvil apps locally",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,7 +4,7 @@ REM This script is synced into anvil website static install endpoints; do not ed
4
4
  setlocal
5
5
 
6
6
  set "SCRIPT_URL=%ANVIL_INSTALL_URL%"
7
- if not defined SCRIPT_URL set "SCRIPT_URL=https://anvil.works/install/anvil-cli/install.ps1"
7
+ if not defined SCRIPT_URL set "SCRIPT_URL=https://anvil.works/install-cli.ps1"
8
8
  set "SCRIPT_PATH=%TEMP%\anvil-install-%RANDOM%%RANDOM%.ps1"
9
9
 
10
10
  where curl >nul 2>&1