Skip to content

Commit 7ccc879

Browse files
Merge pull request #76 from appwrite/dev
fix missing command description
2 parents d98462c + 6a429c8 commit 7ccc879

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
2.0.0
32+
2.0.1
3333
```
3434

3535
### Install using prebuilt binaries
@@ -58,7 +58,7 @@ $ iwr -useb https://appwrite.io/cli/install.ps1 | iex
5858
Once the installation completes, you can verify your install using
5959
```
6060
$ appwrite -v
61-
2.0.0
61+
2.0.1
6262
```
6363

6464
## Getting Started

install.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# You can use "View source" of this page to see the full script.
1414

1515
# REPO
16-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/2.0.0/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/2.0.0/appwrite-cli-win-arm64.exe"
16+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/2.0.1/appwrite-cli-win-x64.exe"
17+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/2.0.1/appwrite-cli-win-arm64.exe"
1818

1919
$APPWRITE_BINARY_NAME = "appwrite.exe"
2020

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ printSuccess() {
9797
downloadBinary() {
9898
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
9999

100-
GITHUB_LATEST_VERSION="2.0.0"
100+
GITHUB_LATEST_VERSION="2.0.1"
101101
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
102102
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
103103

lib/client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class Client {
1616
'x-sdk-name': 'Command Line',
1717
'x-sdk-platform': 'console',
1818
'x-sdk-language': 'cli',
19-
'x-sdk-version': '2.0.0',
20-
'user-agent' : `AppwriteCLI/2.0.0 (${os.type()} ${os.version()}; ${os.arch()})`,
19+
'x-sdk-version': '2.0.1',
20+
'user-agent' : `AppwriteCLI/2.0.1 (${os.type()} ${os.version()}; ${os.arch()})`,
2121
'X-Appwrite-Response-Format' : '1.0.0',
2222
};
2323
}

lib/commands/databases.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ databases
18601860

18611861
databases
18621862
.command(`createRelationshipAttribute`)
1863-
.description(`Create relationship attribute. [Learn more about relationship attributes](docs/databases-relationships#relationship-attributes). `)
1863+
.description(`Create relationship attribute. [Learn more about relationship attributes](/docs/databases-relationships#relationship-attributes). `)
18641864
.requiredOption(`--databaseId <databaseId>`, `Database ID.`)
18651865
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
18661866
.requiredOption(`--relatedCollectionId <relatedCollectionId>`, `Related Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
@@ -1932,7 +1932,7 @@ databases
19321932

19331933
databases
19341934
.command(`updateRelationshipAttribute`)
1935-
.description(`Update relationship attribute. [Learn more about relationship attributes](docs/databases-relationships#relationship-attributes). `)
1935+
.description(`Update relationship attribute. [Learn more about relationship attributes](/docs/databases-relationships#relationship-attributes). `)
19361936
.requiredOption(`--databaseId <databaseId>`, `Database ID.`)
19371937
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
19381938
.requiredOption(`--key <key>`, `Attribute Key.`)

lib/commands/storage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ storage
605605
.option(`--permissions [permissions...]`, `An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](/docs/permissions).`)
606606
.option(`--fileSecurity <fileSecurity>`, `Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](/docs/permissions).`, parseBool)
607607
.option(`--enabled <enabled>`, `Is bucket enabled?`, parseBool)
608-
.option(`--maximumFileSize <maximumFileSize>`, `Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the '_APP_STORAGE_LIMIT' environment variable. [Learn more about storage environment variables](docs/environment-variables#storage)`, parseInteger)
608+
.option(`--maximumFileSize <maximumFileSize>`, `Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the '_APP_STORAGE_LIMIT' environment variable. [Learn more about storage environment variables](/docs/environment-variables#storage)`, parseInteger)
609609
.option(`--allowedFileExtensions [allowedFileExtensions...]`, `Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.`)
610610
.option(`--compression <compression>`, `Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled`)
611611
.option(`--encryption <encryption>`, `Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled`, parseBool)
@@ -626,7 +626,7 @@ storage
626626
.option(`--permissions [permissions...]`, `An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](/docs/permissions).`)
627627
.option(`--fileSecurity <fileSecurity>`, `Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](/docs/permissions).`, parseBool)
628628
.option(`--enabled <enabled>`, `Is bucket enabled?`, parseBool)
629-
.option(`--maximumFileSize <maximumFileSize>`, `Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage environment variables](docs/environment-variables#storage)`, parseInteger)
629+
.option(`--maximumFileSize <maximumFileSize>`, `Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage environment variables](/docs/environment-variables#storage)`, parseInteger)
630630
.option(`--allowedFileExtensions [allowedFileExtensions...]`, `Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.`)
631631
.option(`--compression <compression>`, `Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled`)
632632
.option(`--encryption <encryption>`, `Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled`, parseBool)

lib/parser.js

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ const commandDescriptions = {
168168
"client": `The client command allows you to configure your CLI`,
169169
"login": `The login command allows you to authenticate and manage a user account.`,
170170
"logout": `The logout command allows you to logout of your Appwrite account.`,
171+
"console" : `The console command allows gives you access to the APIs used by the Appwrite console.`,
171172
"main": chalk.redBright(`${logo}${description}`),
172173
}
173174

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "appwrite-cli",
33
"homepage": "https://appwrite.io/support",
44
"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": "2.0.0",
5+
"version": "2.0.1",
66
"license": "BSD-3-Clause",
77
"main": "index.js",
88
"bin": {

0 commit comments

Comments
 (0)