Skip to content

Commit d0c835d

Browse files
update skills
1 parent 1d39f64 commit d0c835d

File tree

5 files changed

+58
-67
lines changed

5 files changed

+58
-67
lines changed

templates/agent-skills/cli.md.twig

Lines changed: 38 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ appwrite projects get --project-id "<PROJECT_ID>"
4646
## Configuration
4747

4848
```bash
49-
appwrite client --endpoint https://<REGION>.cloud.appwrite.io/v1
50-
appwrite client --key <API_KEY>
51-
appwrite client --self-signed true # for self-signed SSL certs
52-
appwrite client --reset # reset CLI configuration
53-
appwrite client --debug # print current configuration
49+
# Authenticate with Appwrite
50+
appwrite login
5451
```
5552

53+
> For the full list of CLI commands, see [CLI Commands](https://appwrite.io/docs/tooling/command-line/commands).
54+
> For headless / CI/CD usage, see [Non-Interactive Mode](https://appwrite.io/docs/tooling/command-line/non-interactive).
55+
5656
## appwrite.config.json
5757

5858
All resources are configured in a single `appwrite.config.json` file at the project root:
@@ -258,59 +258,59 @@ appwrite push tables
258258
}
259259
```
260260

261-
### Database commands
261+
### Database commands (TablesDB)
262262

263263
| Command | Description |
264264
|---------|-------------|
265-
| `appwrite databases list-tables --database-id <ID>` | List tables |
266-
| `appwrite databases create-table --database-id <ID>` | Create table |
267-
| `appwrite databases get-table --database-id <ID> --table-id <ID>` | Get table |
268-
| `appwrite databases update-table --database-id <ID> --table-id <ID>` | Update table |
269-
| `appwrite databases delete-table --database-id <ID> --table-id <ID>` | Delete table |
270-
| `appwrite databases list-columns --database-id <ID> --table-id <ID>` | List columns |
271-
| `appwrite databases get-column --database-id <ID> --table-id <ID> --key <KEY>` | Get column |
272-
| `appwrite databases delete-column --database-id <ID> --table-id <ID> --key <KEY>` | Delete column |
273-
| `appwrite databases list-indexes --database-id <ID> --table-id <ID>` | List indexes |
274-
| `appwrite databases create-index --database-id <ID> --table-id <ID>` | Create index |
275-
| `appwrite databases delete-index --database-id <ID> --table-id <ID> --key <KEY>` | Delete index |
265+
| `appwrite tables-db list-tables --database-id <ID>` | List tables |
266+
| `appwrite tables-db create-table --database-id <ID>` | Create table |
267+
| `appwrite tables-db get-table --database-id <ID> --table-id <ID>` | Get table |
268+
| `appwrite tables-db update-table --database-id <ID> --table-id <ID>` | Update table |
269+
| `appwrite tables-db delete-table --database-id <ID> --table-id <ID>` | Delete table |
270+
| `appwrite tables-db list-columns --database-id <ID> --table-id <ID>` | List columns |
271+
| `appwrite tables-db get-column --database-id <ID> --table-id <ID> --key <KEY>` | Get column |
272+
| `appwrite tables-db delete-column --database-id <ID> --table-id <ID> --key <KEY>` | Delete column |
273+
| `appwrite tables-db list-column-indexes --database-id <ID> --table-id <ID>` | List indexes |
274+
| `appwrite tables-db create-column-index --database-id <ID> --table-id <ID>` | Create index |
275+
| `appwrite tables-db delete-column-index --database-id <ID> --table-id <ID> --key <KEY>` | Delete index |
276276

277277
### Column type commands
278278

279279
> **Note:** The legacy `string` type is deprecated. Use explicit string column types instead.
280280

281281
| Command | Description |
282282
|---------|-------------|
283-
| `create-varchar-attribute` | Varchar column — inline storage, fully indexable (max 16,383 chars, size ≤ 768 for full index) |
284-
| `create-text-attribute` | Text column — off-page storage, prefix index only (max 16,383 chars) |
285-
| `create-mediumtext-attribute` | Mediumtext column — off-page storage (max ~4M chars) |
286-
| `create-longtext-attribute` | Longtext column — off-page storage (max ~1B chars) |
287-
| `create-boolean-attribute` | Boolean column |
288-
| `create-integer-attribute` | Integer column (optional min/max) |
289-
| `create-float-attribute` | Float column (optional min/max) |
290-
| `create-email-attribute` | Email column |
291-
| `create-url-attribute` | URL column |
292-
| `create-ip-attribute` | IP address column |
293-
| `create-datetime-attribute` | Datetime column (ISO 8601) |
294-
| `create-enum-attribute` | Enum column (whitelist of accepted values) |
295-
| `create-relationship-attribute` | Relationship column |
296-
297-
All column commands use `appwrite databases <command> --database-id <ID> --table-id <ID>`.
283+
| `create-varchar-column` | Varchar column — inline storage, fully indexable (max 16,383 chars, size ≤ 768 for full index) |
284+
| `create-text-column` | Text column — off-page storage, prefix index only (max 16,383 chars) |
285+
| `create-mediumtext-column` | Mediumtext column — off-page storage (max ~4M chars) |
286+
| `create-longtext-column` | Longtext column — off-page storage (max ~1B chars) |
287+
| `create-boolean-column` | Boolean column |
288+
| `create-integer-column` | Integer column (optional min/max) |
289+
| `create-float-column` | Float column (optional min/max) |
290+
| `create-email-column` | Email column |
291+
| `create-url-column` | URL column |
292+
| `create-ip-column` | IP address column |
293+
| `create-datetime-column` | Datetime column (ISO 8601) |
294+
| `create-enum-column` | Enum column (whitelist of accepted values) |
295+
| `create-relationship-column` | Relationship column |
296+
297+
All column commands use `appwrite tables-db <command> --database-id <ID> --table-id <ID>`.
298298

299299
### Row operations
300300

301301
```bash
302302
# Create a row
303-
appwrite databases create-row \
303+
appwrite tables-db create-row \
304304
--database-id "<DATABASE_ID>" --table-id "<TABLE_ID>" \
305305
--row-id 'unique()' --data '{ "title": "Hello World" }' \
306306
--permissions 'read("any")' 'write("team:abc")'
307307

308308
# List rows (JSON output)
309-
appwrite databases list-rows \
309+
appwrite tables-db list-rows \
310310
--database-id "<DATABASE_ID>" --table-id "<TABLE_ID>" --json
311311

312312
# Get a row
313-
appwrite databases get-row \
313+
appwrite tables-db get-row \
314314
--database-id "<DATABASE_ID>" --table-id "<TABLE_ID>" --row-id "<ROW_ID>"
315315
```
316316

@@ -410,8 +410,7 @@ appwrite push topics
410410
```bash
411411
# Create a user
412412
appwrite users create --user-id "unique()" \
413-
--email hello@appwrite.io \
414-
--password very_strong_password
413+
--email hello@appwrite.io
415414

416415
# List users
417416
appwrite users list
@@ -484,15 +483,7 @@ await customers.createMany([
484483

485484
## Non-Interactive / CI/CD Mode
486485

487-
For headless automation without config files or sessions:
488-
489-
```bash
490-
# Configure client for non-interactive mode
491-
appwrite client \
492-
--endpoint https://<REGION>.cloud.appwrite.io/v1 \
493-
--project-id <PROJECT_ID> \
494-
--key <API_KEY>
495-
```
486+
For headless automation, see the [Non-Interactive Mode docs](https://appwrite.io/docs/tooling/command-line/non-interactive).
496487

497488
### Deploy non-interactively
498489

@@ -535,7 +526,7 @@ appwrite users list --json
535526
appwrite users list --verbose
536527

537528
# View a row in the Console
538-
appwrite databases get-row \
529+
appwrite tables-db get-row \
539530
--database-id "<DATABASE_ID>" \
540531
--table-id "<TABLE_ID>" \
541532
--row-id "<ROW_ID>" \

templates/agent-skills/dart.md.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,15 @@ await teams.delete(teamId: '[TEAM_ID]');
260260
```dart
261261
final realtime = Realtime(client);
262262

263-
final subscription = realtime.subscribe(['databases.[DATABASE_ID].tables.[TABLE_ID].rows']);
263+
final subscription = realtime.subscribe(['tablesdb.[DATABASE_ID].tables.[TABLE_ID].rows']);
264264
subscription.stream.listen((response) {
265-
print(response.events); // e.g. ['databases.*.tables.*.rows.*.create']
265+
print(response.events); // e.g. ['tablesdb.*.tables.*.rows.*.create']
266266
print(response.payload); // the affected resource
267267
});
268268

269269
// Subscribe to multiple channels
270270
final multi = realtime.subscribe([
271-
'databases.[DATABASE_ID].tables.[TABLE_ID].rows',
271+
'tablesdb.[DATABASE_ID].tables.[TABLE_ID].rows',
272272
'buckets.[BUCKET_ID].files',
273273
]);
274274

@@ -281,8 +281,8 @@ subscription.close();
281281
| Channel | Description |
282282
|---------|-------------|
283283
| `account` | Changes to the authenticated user's account |
284-
| `databases.[DB_ID].tables.[TABLE_ID].rows` | All rows in a table |
285-
| `databases.[DB_ID].tables.[TABLE_ID].rows.[ROW_ID]` | A specific row |
284+
| `tablesdb.[DB_ID].tables.[TABLE_ID].rows` | All rows in a table |
285+
| `tablesdb.[DB_ID].tables.[TABLE_ID].rows.[ROW_ID]` | A specific row |
286286
| `buckets.[BUCKET_ID].files` | All files in a bucket |
287287
| `buckets.[BUCKET_ID].files.[FILE_ID]` | A specific file |
288288
| `teams` | Changes to teams the user belongs to |

templates/agent-skills/kotlin.md.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,14 @@ teams.delete(teamId = "[TEAM_ID]")
286286
```kotlin
287287
val realtime = Realtime(client)
288288

289-
val subscription = realtime.subscribe("databases.[DATABASE_ID].tables.[TABLE_ID].rows") { response ->
290-
println(response.events) // e.g. ["databases.*.tables.*.rows.*.create"]
289+
val subscription = realtime.subscribe("tablesdb.[DATABASE_ID].tables.[TABLE_ID].rows") { response ->
290+
println(response.events) // e.g. ["tablesdb.*.tables.*.rows.*.create"]
291291
println(response.payload) // the affected resource
292292
}
293293

294294
// Subscribe to multiple channels
295295
val multi = realtime.subscribe(
296-
"databases.[DATABASE_ID].tables.[TABLE_ID].rows",
296+
"tablesdb.[DATABASE_ID].tables.[TABLE_ID].rows",
297297
"buckets.[BUCKET_ID].files"
298298
) { response -> /* ... */ }
299299

@@ -306,8 +306,8 @@ subscription.close()
306306
| Channel | Description |
307307
|---------|-------------|
308308
| `account` | Changes to the authenticated user's account |
309-
| `databases.[DB_ID].tables.[TABLE_ID].rows` | All rows in a table |
310-
| `databases.[DB_ID].tables.[TABLE_ID].rows.[ROW_ID]` | A specific row |
309+
| `tablesdb.[DB_ID].tables.[TABLE_ID].rows` | All rows in a table |
310+
| `tablesdb.[DB_ID].tables.[TABLE_ID].rows.[ROW_ID]` | A specific row |
311311
| `buckets.[BUCKET_ID].files` | All files in a bucket |
312312
| `buckets.[BUCKET_ID].files.[FILE_ID]` | A specific file |
313313
| `teams` | Changes to teams the user belongs to |

templates/agent-skills/swift.md.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,14 @@ try await teams.delete(teamId: "[TEAM_ID]")
230230
```swift
231231
let realtime = Realtime(client)
232232

233-
let subscription = realtime.subscribe(channels: ["databases.[DATABASE_ID].tables.[TABLE_ID].rows"]) { response in
234-
print(response.events) // e.g. ["databases.*.tables.*.rows.*.create"]
233+
let subscription = realtime.subscribe(channels: ["tablesdb.[DATABASE_ID].tables.[TABLE_ID].rows"]) { response in
234+
print(response.events) // e.g. ["tablesdb.*.tables.*.rows.*.create"]
235235
print(response.payload) // the affected resource
236236
}
237237

238238
// Subscribe to multiple channels
239239
let multi = realtime.subscribe(channels: [
240-
"databases.[DATABASE_ID].tables.[TABLE_ID].rows",
240+
"tablesdb.[DATABASE_ID].tables.[TABLE_ID].rows",
241241
"buckets.[BUCKET_ID].files",
242242
]) { response in /* ... */ }
243243

@@ -250,8 +250,8 @@ subscription.close()
250250
| Channel | Description |
251251
|---------|-------------|
252252
| `account` | Changes to the authenticated user's account |
253-
| `databases.[DB_ID].tables.[TABLE_ID].rows` | All rows in a table |
254-
| `databases.[DB_ID].tables.[TABLE_ID].rows.[ROW_ID]` | A specific row |
253+
| `tablesdb.[DB_ID].tables.[TABLE_ID].rows` | All rows in a table |
254+
| `tablesdb.[DB_ID].tables.[TABLE_ID].rows.[ROW_ID]` | A specific row |
255255
| `buckets.[BUCKET_ID].files` | All files in a bucket |
256256
| `buckets.[BUCKET_ID].files.[FILE_ID]` | A specific file |
257257
| `teams` | Changes to teams the user belongs to |

templates/agent-skills/typescript.md.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ await teams.delete({ teamId: '[TEAM_ID]' });
423423

424424
```typescript
425425
// Subscribe to row changes
426-
const unsubscribe = client.subscribe('databases.[DATABASE_ID].tables.[TABLE_ID].rows', (response) => {
427-
console.log(response.events); // e.g. ['databases.*.tables.*.rows.*.create']
426+
const unsubscribe = client.subscribe('tablesdb.[DATABASE_ID].tables.[TABLE_ID].rows', (response) => {
427+
console.log(response.events); // e.g. ['tablesdb.*.tables.*.rows.*.create']
428428
console.log(response.payload); // the affected resource
429429
});
430430

@@ -435,7 +435,7 @@ client.subscribe('buckets.[BUCKET_ID].files', (response) => {
435435

436436
// Subscribe to multiple channels
437437
client.subscribe([
438-
'databases.[DATABASE_ID].tables.[TABLE_ID].rows',
438+
'tablesdb.[DATABASE_ID].tables.[TABLE_ID].rows',
439439
'buckets.[BUCKET_ID].files',
440440
], (response) => { /* ... */ });
441441

@@ -448,8 +448,8 @@ unsubscribe();
448448
| Channel | Description |
449449
|---------|-------------|
450450
| `account` | Changes to the authenticated user's account |
451-
| `databases.[DB_ID].tables.[TABLE_ID].rows` | All rows in a table |
452-
| `databases.[DB_ID].tables.[TABLE_ID].rows.[ROW_ID]` | A specific row |
451+
| `tablesdb.[DB_ID].tables.[TABLE_ID].rows` | All rows in a table |
452+
| `tablesdb.[DB_ID].tables.[TABLE_ID].rows.[ROW_ID]` | A specific row |
453453
| `buckets.[BUCKET_ID].files` | All files in a bucket |
454454
| `buckets.[BUCKET_ID].files.[FILE_ID]` | A specific file |
455455
| `teams` | Changes to teams the user belongs to |

0 commit comments

Comments
 (0)