appwrite-cli 9.0.0 → 9.0.1

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
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
29
29
 
30
30
  ```sh
31
31
  $ appwrite -v
32
- 9.0.0
32
+ 9.0.1
33
33
  ```
34
34
 
35
35
  ### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
60
60
  Once the installation completes, you can verify your install using
61
61
  ```
62
62
  $ appwrite -v
63
- 9.0.0
63
+ 9.0.1
64
64
  ```
65
65
 
66
66
  ## Getting Started
package/index.js CHANGED
@@ -138,7 +138,7 @@ program
138
138
  .addCommand(proxy)
139
139
  .addCommand(sites)
140
140
  .addCommand(storage)
141
- .addCommand(tablesdb)
141
+ .addCommand(tablesDB)
142
142
  .addCommand(teams)
143
143
  .addCommand(tokens)
144
144
  .addCommand(users)
package/install.ps1 CHANGED
@@ -13,8 +13,8 @@
13
13
  # You can use "View source" of this page to see the full script.
14
14
 
15
15
  # REPO
16
- $GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.0/appwrite-cli-win-x64.exe"
17
- $GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.0/appwrite-cli-win-arm64.exe"
16
+ $GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.1/appwrite-cli-win-x64.exe"
17
+ $GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.1/appwrite-cli-win-arm64.exe"
18
18
 
19
19
  $APPWRITE_BINARY_NAME = "appwrite.exe"
20
20
 
package/install.sh CHANGED
@@ -97,7 +97,7 @@ printSuccess() {
97
97
  downloadBinary() {
98
98
  echo "[2/4] Downloading executable for $OS ($ARCH) ..."
99
99
 
100
- GITHUB_LATEST_VERSION="9.0.0"
100
+ GITHUB_LATEST_VERSION="9.0.1"
101
101
  GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
102
102
  GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
103
103
 
package/lib/client.js CHANGED
@@ -16,8 +16,8 @@ class Client {
16
16
  'x-sdk-name': 'Command Line',
17
17
  'x-sdk-platform': 'console',
18
18
  'x-sdk-language': 'cli',
19
- 'x-sdk-version': '9.0.0',
20
- 'user-agent' : `AppwriteCLI/9.0.0 (${os.type()} ${os.version()}; ${os.arch()})`,
19
+ 'x-sdk-version': '9.0.1',
20
+ 'user-agent' : `AppwriteCLI/9.0.1 (${os.type()} ${os.version()}; ${os.arch()})`,
21
21
  'X-Appwrite-Response-Format' : '1.8.0',
22
22
  };
23
23
  }
@@ -2330,7 +2330,7 @@ databases
2330
2330
 
2331
2331
  databases
2332
2332
  .command(`create`)
2333
- .description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-database' instead] Create a new Database. `)
2333
+ .description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create' instead] Create a new Database. `)
2334
2334
  .requiredOption(`--database-id <database-id>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2335
2335
  .requiredOption(`--name <name>`, `Database name. Max length: 128 chars.`)
2336
2336
  .option(`--enabled [value]`, `Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.`, (value) => value === undefined ? true : parseBool(value))
@@ -9,7 +9,7 @@ const { projectsGet } = require("./projects");
9
9
  const { functionsList, functionsGetDeploymentDownload, functionsListDeployments } = require("./functions");
10
10
  const { sitesList, sitesGetDeploymentDownload, sitesListDeployments } = require("./sites");
11
11
  const { databasesGet, databasesListCollections, databasesList } = require("./databases");
12
- const { gridsListDatabases, gridsGetDatabase, gridsListTables } = require("./grids");
12
+ const { tablesDBList, tablesDBget, tablesDBListTables } = require("./tables-db");
13
13
  const { storageListBuckets } = require("./storage");
14
14
  const { localConfig } = require("../config");
15
15
  const { paginate } = require("../paginate");
@@ -343,7 +343,7 @@ const pullTable = async () => {
343
343
  log("Fetching tables ...");
344
344
  let total = 0;
345
345
 
346
- const fetchResponse = await gridsListDatabases({
346
+ const fetchResponse = await tablesDBList({
347
347
  queries: [JSON.stringify({ method: 'limit', values: [1] })],
348
348
  parseOutput: false
349
349
  });
@@ -357,14 +357,14 @@ const pullTable = async () => {
357
357
 
358
358
  if (databases.length === 0) {
359
359
  if (cliConfig.all) {
360
- databases = (await paginate(gridsListDatabases, { parseOutput: false }, 100, 'databases')).databases.map(database => database.$id);
360
+ databases = (await paginate(tablesDBList, { parseOutput: false }, 100, 'databases')).databases.map(database => database.$id);
361
361
  } else {
362
362
  databases = (await inquirer.prompt(questionsPullCollection)).databases;
363
363
  }
364
364
  }
365
365
 
366
366
  for (const databaseId of databases) {
367
- const database = await gridsGetDatabase({
367
+ const database = await tablesDBget({
368
368
  databaseId,
369
369
  parseOutput: false
370
370
  });
@@ -374,7 +374,7 @@ const pullTable = async () => {
374
374
 
375
375
  localConfig.addDatabase(database);
376
376
 
377
- const { tables } = await paginate(gridsListTables, {
377
+ const { tables } = await paginate(tablesDBListTables, {
378
378
  databaseId,
379
379
  parseOutput: false
380
380
  }, 100, 'tables');
@@ -50,9 +50,9 @@ const {
50
50
  databasesUpdateCollection
51
51
  } = require("./databases");
52
52
  const {
53
- gridsGetDatabase,
54
- gridsGetTable
55
- } = require("./grids");
53
+ tablesDBGet,
54
+ tablesDBGetTable
55
+ } = require("./tables-db");
56
56
  const {
57
57
  storageGetBucket, storageUpdateBucket, storageCreateBucket
58
58
  } = require("./storage");
@@ -1714,7 +1714,7 @@ const pushTable = async ({ returnOnZero, attempts } = { returnOnZero: false }) =
1714
1714
  const localDatabase = localConfig.getDatabase(databaseId);
1715
1715
 
1716
1716
  try {
1717
- const database = await gridsGetDatabase({
1717
+ const database = await tablesDBGet({
1718
1718
  databaseId: databaseId,
1719
1719
  parseOutput: false,
1720
1720
  });
@@ -1740,13 +1740,13 @@ const pushTable = async ({ returnOnZero, attempts } = { returnOnZero: false }) =
1740
1740
  }));
1741
1741
 
1742
1742
 
1743
- if (!(await approveChanges(tables, gridsGetTable, KeysTable, 'tableId', 'tables', ['columns', 'indexes'], 'databaseId', 'databaseId',))) {
1743
+ if (!(await approveChanges(tables, tablesDBGetTable, KeysTable, 'tableId', 'tables', ['columns', 'indexes'], 'databaseId', 'databaseId',))) {
1744
1744
  return;
1745
1745
  }
1746
1746
  // Parallel collection actions
1747
1747
  await Promise.all(tables.map(async (table) => {
1748
1748
  try {
1749
- const remoteTable = await gridsGetTable({
1749
+ const remoteTable = await tablesDBGetTable({
1750
1750
  databaseId: table['databaseId'],
1751
1751
  tableId: table['$id'],
1752
1752
  parseOutput: false,
package/lib/parser.js CHANGED
@@ -122,7 +122,7 @@ const parseError = (err) => {
122
122
  } catch {
123
123
  }
124
124
 
125
- const version = '9.0.0';
125
+ const version = '9.0.1';
126
126
  const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``;
127
127
  const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud()}`;
128
128
 
package/lib/questions.js CHANGED
@@ -255,7 +255,7 @@ const questionsPullResources = [
255
255
  choices: [
256
256
  { name: `Settings ${chalk.blackBright(`(Project)`)}`, value: 'settings' },
257
257
  { name: `Functions ${chalk.blackBright(`(Deployment)`)}`, value: 'functions' },
258
- { name: `Tables ${chalk.blackBright(`(Grids)`)}`, value: 'tables' },
258
+ { name: `Tables ${chalk.blackBright(`(TablesDB)`)}`, value: 'tables' },
259
259
  { name: `Buckets ${chalk.blackBright(`(Storage)`)}`, value: 'buckets' },
260
260
  { name: `Teams ${chalk.blackBright(`(Auth)`)}`, value: 'teams' },
261
261
  { name: `Topics ${chalk.blackBright(`(Messaging)`)}`, value: 'messages' },
@@ -667,7 +667,7 @@ const questionsPushResources = [
667
667
  choices: [
668
668
  { name: `Settings ${chalk.blackBright(`(Project)`)}`, value: 'settings' },
669
669
  { name: `Functions ${chalk.blackBright(`(Deployment)`)}`, value: 'functions' },
670
- { name: `Tables ${chalk.blackBright(`(Grids)`)}`, value: 'tables' },
670
+ { name: `Tables ${chalk.blackBright(`(TablesDB)`)}`, value: 'tables' },
671
671
  { name: `Buckets ${chalk.blackBright(`(Storage)`)}`, value: 'buckets' },
672
672
  { name: `Teams ${chalk.blackBright(`(Auth)`)}`, value: 'teams' },
673
673
  { name: `Topics ${chalk.blackBright(`(Messaging)`)}`, value: 'messages' },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "appwrite-cli",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "9.0.0",
5
+ "version": "9.0.1",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "index.js",
8
8
  "bin": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
5
5
  "homepage": "https://github.com/appwrite/sdk-for-cli",
6
6
  "license": "BSD-3-Clause",
7
7
  "architecture": {
8
8
  "64bit": {
9
- "url": "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.0/appwrite-cli-win-x64.exe",
9
+ "url": "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.1/appwrite-cli-win-x64.exe",
10
10
  "bin": [
11
11
  [
12
12
  "appwrite-cli-win-x64.exe",
@@ -15,7 +15,7 @@
15
15
  ]
16
16
  },
17
17
  "arm64": {
18
- "url": "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.0/appwrite-cli-win-arm64.exe",
18
+ "url": "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.1/appwrite-cli-win-arm64.exe",
19
19
  "bin": [
20
20
  [
21
21
  "appwrite-cli-win-arm64.exe",