@anvil-works/anvil-cli 0.3.10 → 0.3.12

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
@@ -70,18 +70,12 @@ anvil login https://anvil.works
70
70
 
71
71
  **Multiple Accounts:** anvil-cli supports multiple Anvil installations simultaneously. Each URL has its own authentication tokens, so you can work with different enterprise installations or switch between them easily.
72
72
 
73
- ### 2. Sync Your Changes
73
+ ### 2. Watch Your Changes
74
74
 
75
- Navigate to your local Anvil app directory and start syncing:
75
+ Navigate to your local Anvil app directory and start watching:
76
76
 
77
77
  ```bash
78
78
  cd /path/to/your/anvil/app
79
- anvil sync
80
- ```
81
-
82
- Or use the `watch` alias (for backward compatibility):
83
-
84
- ```bash
85
79
  anvil watch
86
80
  ```
87
81
 
@@ -91,13 +85,15 @@ Or use the short form:
91
85
  anvil w
92
86
  ```
93
87
 
88
+ > **Note:** `anvil sync` still works but is deprecated. Use `anvil watch` instead.
89
+
94
90
  You can specify the app ID explicitly:
95
91
 
96
92
  ```bash
97
- anvil sync -A YOUR_APP_ID
93
+ anvil watch -A YOUR_APP_ID
98
94
  ```
99
95
 
100
- **Sync Options:**
96
+ **Watch Options:**
101
97
 
102
98
  - `-A, --appid <APP_ID>` - Specify app ID directly
103
99
  - `-f, --first` - Auto-select first detected app ID without confirmation
@@ -128,10 +124,10 @@ The diagram shows bidirectional sync:
128
124
 
129
125
  | Command | Description |
130
126
  | -------------------------------------- | -------------------------------------------------------------------- |
131
- | `anvil sync [path]` | Watch directory for changes and sync to Anvil |
132
- | `anvil sync -V` or `--verbose` | Sync with verbose logging (detailed output) |
133
- | `anvil watch [path]` | Alias for sync (backward compatibility) |
134
- | `anvil w [path]` | Short form for sync |
127
+ | `anvil watch [path]` | Watch directory for changes and sync to Anvil |
128
+ | `anvil watch -V` or `--verbose` | Watch with verbose logging (detailed output) |
129
+ | `anvil sync [path]` | Deprecated alias for `watch` |
130
+ | `anvil w [path]` | Short form for watch |
135
131
  | `anvil login [anvil-server-url]` | Authenticate with Anvil using OAuth (supports smart URL handling) |
136
132
  | `anvil l [anvil-server-url]` | Short form for login |
137
133
  | `anvil logout [anvil-server-url]` | Logout from Anvil (optionally specify URL for specific installation) |
@@ -152,7 +148,7 @@ anvil-cli can auto-detect your app ID using multiple strategies:
152
148
  If auto-detection fails, you can specify the app ID explicitly:
153
149
 
154
150
  ```bash
155
- anvil sync -A YOUR_APP_ID
151
+ anvil watch -A YOUR_APP_ID
156
152
  ```
157
153
 
158
154
  ### Anvil URL Detection
@@ -169,15 +165,15 @@ anvil-cli automatically detects which Anvil server to use:
169
165
 
170
166
  ```bash
171
167
  # Auto-detect from git remote
172
- anvil sync
168
+ anvil watch
173
169
 
174
170
  # Specify URL explicitly
175
- anvil sync --url anvil.works
176
- anvil sync --url localhost:3000
177
- anvil sync --url anvil.mycompany.com
171
+ anvil watch --url anvil.works
172
+ anvil watch --url localhost:3000
173
+ anvil watch --url anvil.mycompany.com
178
174
 
179
175
  # If multiple accounts, you'll be prompted to select
180
- anvil sync
176
+ anvil watch
181
177
  # ? Multiple Anvil installations found. Which one would you like to use?
182
178
  # ❯ https://anvil.works
183
179
  # https://anvil.company.com
@@ -224,7 +220,7 @@ By default, anvil-cli shows minimal output. For more detailed logging:
224
220
  **One-time:** Use the `-V` or `--verbose` flag:
225
221
 
226
222
  ```bash
227
- anvil sync --verbose
223
+ anvil watch --verbose
228
224
  ```
229
225
 
230
226
  **Persistent:** Set verbose mode in config:
@@ -253,7 +249,7 @@ anvil login https://anvil.mycompany.com
253
249
 
254
250
  ```bash
255
251
  # Sync with specific URL
256
- anvil sync --url anvil.mycompany.com
252
+ anvil watch --url anvil.mycompany.com
257
253
  ```
258
254
 
259
255
  **Option 3: Set global default**
@@ -275,7 +271,7 @@ anvil login anvil.company-b.com
275
271
 
276
272
  # When syncing, you'll be prompted to select which one to use
277
273
  # Or specify explicitly:
278
- anvil sync --url anvil.company-a.com
274
+ anvil watch --url anvil.company-a.com
279
275
  ```
280
276
 
281
277
  **URL Resolution Priority:**
@@ -324,8 +320,8 @@ anvil logout --url localhost:3000
324
320
 
325
321
  - Ensure you're in an Anvil app directory with `anvil.yaml`
326
322
  - Check git remotes: `git remote -v`
327
- - Specify app ID explicitly: `anvil sync -A YOUR_APP_ID`
328
- - Use `-f, --first` to auto-select the first detected app ID: `anvil sync -f`
323
+ - Specify app ID explicitly: `anvil watch -A YOUR_APP_ID`
324
+ - Use `-f, --first` to auto-select the first detected app ID: `anvil watch -f`
329
325
 
330
326
  ### "Authentication failed" or "Not logged in to [URL]"
331
327