appwrite-cli 6.0.0-rc.3 → 6.0.0-rc.5

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.
@@ -1950,199 +1950,199 @@ projects
1950
1950
  projects
1951
1951
  .command(`create`)
1952
1952
  .description(``)
1953
- .requiredOption(`--projectId <projectId>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, and hyphen. Can't start with a special char. Max length is 36 chars.`)
1953
+ .requiredOption(`--project-id <project-id>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, and hyphen. Can't start with a special char. Max length is 36 chars.`)
1954
1954
  .requiredOption(`--name <name>`, `Project name. Max length: 128 chars.`)
1955
- .requiredOption(`--teamId <teamId>`, `Team unique ID.`)
1955
+ .requiredOption(`--team-id <team-id>`, `Team unique ID.`)
1956
1956
  .option(`--region <region>`, `Project Region.`)
1957
1957
  .option(`--description <description>`, `Project description. Max length: 256 chars.`)
1958
1958
  .option(`--logo <logo>`, `Project logo.`)
1959
1959
  .option(`--url <url>`, `Project URL.`)
1960
- .option(`--legalName <legalName>`, `Project legal Name. Max length: 256 chars.`)
1961
- .option(`--legalCountry <legalCountry>`, `Project legal Country. Max length: 256 chars.`)
1962
- .option(`--legalState <legalState>`, `Project legal State. Max length: 256 chars.`)
1963
- .option(`--legalCity <legalCity>`, `Project legal City. Max length: 256 chars.`)
1964
- .option(`--legalAddress <legalAddress>`, `Project legal Address. Max length: 256 chars.`)
1965
- .option(`--legalTaxId <legalTaxId>`, `Project legal Tax ID. Max length: 256 chars.`)
1960
+ .option(`--legal-name <legal-name>`, `Project legal Name. Max length: 256 chars.`)
1961
+ .option(`--legal-country <legal-country>`, `Project legal Country. Max length: 256 chars.`)
1962
+ .option(`--legal-state <legal-state>`, `Project legal State. Max length: 256 chars.`)
1963
+ .option(`--legal-city <legal-city>`, `Project legal City. Max length: 256 chars.`)
1964
+ .option(`--legal-address <legal-address>`, `Project legal Address. Max length: 256 chars.`)
1965
+ .option(`--legal-tax-id <legal-tax-id>`, `Project legal Tax ID. Max length: 256 chars.`)
1966
1966
  .action(actionRunner(projectsCreate))
1967
1967
 
1968
1968
  projects
1969
1969
  .command(`get`)
1970
1970
  .description(``)
1971
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1971
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
1972
1972
  .option(`--console`, `Get the resource console url`)
1973
1973
  .action(actionRunner(projectsGet))
1974
1974
 
1975
1975
  projects
1976
1976
  .command(`update`)
1977
1977
  .description(``)
1978
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1978
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
1979
1979
  .requiredOption(`--name <name>`, `Project name. Max length: 128 chars.`)
1980
1980
  .option(`--description <description>`, `Project description. Max length: 256 chars.`)
1981
1981
  .option(`--logo <logo>`, `Project logo.`)
1982
1982
  .option(`--url <url>`, `Project URL.`)
1983
- .option(`--legalName <legalName>`, `Project legal name. Max length: 256 chars.`)
1984
- .option(`--legalCountry <legalCountry>`, `Project legal country. Max length: 256 chars.`)
1985
- .option(`--legalState <legalState>`, `Project legal state. Max length: 256 chars.`)
1986
- .option(`--legalCity <legalCity>`, `Project legal city. Max length: 256 chars.`)
1987
- .option(`--legalAddress <legalAddress>`, `Project legal address. Max length: 256 chars.`)
1988
- .option(`--legalTaxId <legalTaxId>`, `Project legal tax ID. Max length: 256 chars.`)
1983
+ .option(`--legal-name <legal-name>`, `Project legal name. Max length: 256 chars.`)
1984
+ .option(`--legal-country <legal-country>`, `Project legal country. Max length: 256 chars.`)
1985
+ .option(`--legal-state <legal-state>`, `Project legal state. Max length: 256 chars.`)
1986
+ .option(`--legal-city <legal-city>`, `Project legal city. Max length: 256 chars.`)
1987
+ .option(`--legal-address <legal-address>`, `Project legal address. Max length: 256 chars.`)
1988
+ .option(`--legal-tax-id <legal-tax-id>`, `Project legal tax ID. Max length: 256 chars.`)
1989
1989
  .action(actionRunner(projectsUpdate))
1990
1990
 
1991
1991
  projects
1992
1992
  .command(`delete`)
1993
1993
  .description(``)
1994
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1994
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
1995
1995
  .action(actionRunner(projectsDelete))
1996
1996
 
1997
1997
  projects
1998
- .command(`updateApiStatus`)
1998
+ .command(`update-api-status`)
1999
1999
  .description(``)
2000
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2000
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2001
2001
  .requiredOption(`--api <api>`, `API name.`)
2002
2002
  .requiredOption(`--status <status>`, `API status.`, parseBool)
2003
2003
  .action(actionRunner(projectsUpdateApiStatus))
2004
2004
 
2005
2005
  projects
2006
- .command(`updateApiStatusAll`)
2006
+ .command(`update-api-status-all`)
2007
2007
  .description(``)
2008
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2008
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2009
2009
  .requiredOption(`--status <status>`, `API status.`, parseBool)
2010
2010
  .action(actionRunner(projectsUpdateApiStatusAll))
2011
2011
 
2012
2012
  projects
2013
- .command(`updateAuthDuration`)
2013
+ .command(`update-auth-duration`)
2014
2014
  .description(``)
2015
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2015
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2016
2016
  .requiredOption(`--duration <duration>`, `Project session length in seconds. Max length: 31536000 seconds.`, parseInteger)
2017
2017
  .action(actionRunner(projectsUpdateAuthDuration))
2018
2018
 
2019
2019
  projects
2020
- .command(`updateAuthLimit`)
2020
+ .command(`update-auth-limit`)
2021
2021
  .description(``)
2022
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2022
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2023
2023
  .requiredOption(`--limit <limit>`, `Set the max number of users allowed in this project. Use 0 for unlimited.`, parseInteger)
2024
2024
  .action(actionRunner(projectsUpdateAuthLimit))
2025
2025
 
2026
2026
  projects
2027
- .command(`updateAuthSessionsLimit`)
2027
+ .command(`update-auth-sessions-limit`)
2028
2028
  .description(``)
2029
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2029
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2030
2030
  .requiredOption(`--limit <limit>`, `Set the max number of users allowed in this project. Value allowed is between 1-100. Default is 10`, parseInteger)
2031
2031
  .action(actionRunner(projectsUpdateAuthSessionsLimit))
2032
2032
 
2033
2033
  projects
2034
- .command(`updateMockNumbers`)
2034
+ .command(`update-mock-numbers`)
2035
2035
  .description(``)
2036
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2036
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2037
2037
  .requiredOption(`--numbers [numbers...]`, `An array of mock numbers and their corresponding verification codes (OTPs). Each number should be a valid E.164 formatted phone number. Maximum of 10 numbers are allowed.`)
2038
2038
  .action(actionRunner(projectsUpdateMockNumbers))
2039
2039
 
2040
2040
  projects
2041
- .command(`updateAuthPasswordDictionary`)
2041
+ .command(`update-auth-password-dictionary`)
2042
2042
  .description(``)
2043
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2043
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2044
2044
  .requiredOption(`--enabled <enabled>`, `Set whether or not to enable checking user's password against most commonly used passwords. Default is false.`, parseBool)
2045
2045
  .action(actionRunner(projectsUpdateAuthPasswordDictionary))
2046
2046
 
2047
2047
  projects
2048
- .command(`updateAuthPasswordHistory`)
2048
+ .command(`update-auth-password-history`)
2049
2049
  .description(``)
2050
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2050
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2051
2051
  .requiredOption(`--limit <limit>`, `Set the max number of passwords to store in user history. User can't choose a new password that is already stored in the password history list. Max number of passwords allowed in history is20. Default value is 0`, parseInteger)
2052
2052
  .action(actionRunner(projectsUpdateAuthPasswordHistory))
2053
2053
 
2054
2054
  projects
2055
- .command(`updatePersonalDataCheck`)
2055
+ .command(`update-personal-data-check`)
2056
2056
  .description(``)
2057
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2057
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2058
2058
  .requiredOption(`--enabled <enabled>`, `Set whether or not to check a password for similarity with personal data. Default is false.`, parseBool)
2059
2059
  .action(actionRunner(projectsUpdatePersonalDataCheck))
2060
2060
 
2061
2061
  projects
2062
- .command(`updateSessionAlerts`)
2062
+ .command(`update-session-alerts`)
2063
2063
  .description(``)
2064
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2064
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2065
2065
  .requiredOption(`--alerts <alerts>`, `Set to true to enable session emails.`, parseBool)
2066
2066
  .action(actionRunner(projectsUpdateSessionAlerts))
2067
2067
 
2068
2068
  projects
2069
- .command(`updateAuthStatus`)
2069
+ .command(`update-auth-status`)
2070
2070
  .description(``)
2071
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2071
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2072
2072
  .requiredOption(`--method <method>`, `Auth Method. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone`)
2073
2073
  .requiredOption(`--status <status>`, `Set the status of this auth method.`, parseBool)
2074
2074
  .action(actionRunner(projectsUpdateAuthStatus))
2075
2075
 
2076
2076
  projects
2077
- .command(`createJWT`)
2077
+ .command(`create-jwt`)
2078
2078
  .description(``)
2079
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2079
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2080
2080
  .requiredOption(`--scopes [scopes...]`, `List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.`)
2081
2081
  .option(`--duration <duration>`, `Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.`, parseInteger)
2082
2082
  .action(actionRunner(projectsCreateJWT))
2083
2083
 
2084
2084
  projects
2085
- .command(`listKeys`)
2085
+ .command(`list-keys`)
2086
2086
  .description(``)
2087
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2087
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2088
2088
  .option(`--console`, `Get the resource console url`)
2089
2089
  .action(actionRunner(projectsListKeys))
2090
2090
 
2091
2091
  projects
2092
- .command(`createKey`)
2092
+ .command(`create-key`)
2093
2093
  .description(``)
2094
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2094
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2095
2095
  .requiredOption(`--name <name>`, `Key name. Max length: 128 chars.`)
2096
2096
  .requiredOption(`--scopes [scopes...]`, `Key scopes list. Maximum of 100 scopes are allowed.`)
2097
2097
  .option(`--expire <expire>`, `Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.`)
2098
2098
  .action(actionRunner(projectsCreateKey))
2099
2099
 
2100
2100
  projects
2101
- .command(`getKey`)
2101
+ .command(`get-key`)
2102
2102
  .description(``)
2103
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2104
- .requiredOption(`--keyId <keyId>`, `Key unique ID.`)
2103
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2104
+ .requiredOption(`--key-id <key-id>`, `Key unique ID.`)
2105
2105
  .option(`--console`, `Get the resource console url`)
2106
2106
  .action(actionRunner(projectsGetKey))
2107
2107
 
2108
2108
  projects
2109
- .command(`updateKey`)
2109
+ .command(`update-key`)
2110
2110
  .description(``)
2111
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2112
- .requiredOption(`--keyId <keyId>`, `Key unique ID.`)
2111
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2112
+ .requiredOption(`--key-id <key-id>`, `Key unique ID.`)
2113
2113
  .requiredOption(`--name <name>`, `Key name. Max length: 128 chars.`)
2114
2114
  .requiredOption(`--scopes [scopes...]`, `Key scopes list. Maximum of 100 events are allowed.`)
2115
2115
  .option(`--expire <expire>`, `Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.`)
2116
2116
  .action(actionRunner(projectsUpdateKey))
2117
2117
 
2118
2118
  projects
2119
- .command(`deleteKey`)
2119
+ .command(`delete-key`)
2120
2120
  .description(``)
2121
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2122
- .requiredOption(`--keyId <keyId>`, `Key unique ID.`)
2121
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2122
+ .requiredOption(`--key-id <key-id>`, `Key unique ID.`)
2123
2123
  .action(actionRunner(projectsDeleteKey))
2124
2124
 
2125
2125
  projects
2126
- .command(`updateOAuth2`)
2126
+ .command(`update-o-auth-2`)
2127
2127
  .description(``)
2128
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2128
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2129
2129
  .requiredOption(`--provider <provider>`, `Provider Name`)
2130
- .option(`--appId <appId>`, `Provider app ID. Max length: 256 chars.`)
2130
+ .option(`--app-id <app-id>`, `Provider app ID. Max length: 256 chars.`)
2131
2131
  .option(`--secret <secret>`, `Provider secret key. Max length: 512 chars.`)
2132
2132
  .option(`--enabled <enabled>`, `Provider status. Set to 'false' to disable new session creation.`, parseBool)
2133
2133
  .action(actionRunner(projectsUpdateOAuth2))
2134
2134
 
2135
2135
  projects
2136
- .command(`listPlatforms`)
2136
+ .command(`list-platforms`)
2137
2137
  .description(``)
2138
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2138
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2139
2139
  .option(`--console`, `Get the resource console url`)
2140
2140
  .action(actionRunner(projectsListPlatforms))
2141
2141
 
2142
2142
  projects
2143
- .command(`createPlatform`)
2143
+ .command(`create-platform`)
2144
2144
  .description(``)
2145
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2145
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2146
2146
  .requiredOption(`--type <type>`, `Platform type.`)
2147
2147
  .requiredOption(`--name <name>`, `Platform name. Max length: 128 chars.`)
2148
2148
  .option(`--key <key>`, `Package name for Android or bundle ID for iOS or macOS. Max length: 256 chars.`)
@@ -2151,18 +2151,18 @@ projects
2151
2151
  .action(actionRunner(projectsCreatePlatform))
2152
2152
 
2153
2153
  projects
2154
- .command(`getPlatform`)
2154
+ .command(`get-platform`)
2155
2155
  .description(``)
2156
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2157
- .requiredOption(`--platformId <platformId>`, `Platform unique ID.`)
2156
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2157
+ .requiredOption(`--platform-id <platform-id>`, `Platform unique ID.`)
2158
2158
  .option(`--console`, `Get the resource console url`)
2159
2159
  .action(actionRunner(projectsGetPlatform))
2160
2160
 
2161
2161
  projects
2162
- .command(`updatePlatform`)
2162
+ .command(`update-platform`)
2163
2163
  .description(``)
2164
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2165
- .requiredOption(`--platformId <platformId>`, `Platform unique ID.`)
2164
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2165
+ .requiredOption(`--platform-id <platform-id>`, `Platform unique ID.`)
2166
2166
  .requiredOption(`--name <name>`, `Platform name. Max length: 128 chars.`)
2167
2167
  .option(`--key <key>`, `Package name for android or bundle ID for iOS. Max length: 256 chars.`)
2168
2168
  .option(`--store <store>`, `App store or Google Play store ID. Max length: 256 chars.`)
@@ -2170,35 +2170,35 @@ projects
2170
2170
  .action(actionRunner(projectsUpdatePlatform))
2171
2171
 
2172
2172
  projects
2173
- .command(`deletePlatform`)
2173
+ .command(`delete-platform`)
2174
2174
  .description(``)
2175
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2176
- .requiredOption(`--platformId <platformId>`, `Platform unique ID.`)
2175
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2176
+ .requiredOption(`--platform-id <platform-id>`, `Platform unique ID.`)
2177
2177
  .action(actionRunner(projectsDeletePlatform))
2178
2178
 
2179
2179
  projects
2180
- .command(`updateServiceStatus`)
2180
+ .command(`update-service-status`)
2181
2181
  .description(``)
2182
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2182
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2183
2183
  .requiredOption(`--service <service>`, `Service name.`)
2184
2184
  .requiredOption(`--status <status>`, `Service status.`, parseBool)
2185
2185
  .action(actionRunner(projectsUpdateServiceStatus))
2186
2186
 
2187
2187
  projects
2188
- .command(`updateServiceStatusAll`)
2188
+ .command(`update-service-status-all`)
2189
2189
  .description(``)
2190
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2190
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2191
2191
  .requiredOption(`--status <status>`, `Service status.`, parseBool)
2192
2192
  .action(actionRunner(projectsUpdateServiceStatusAll))
2193
2193
 
2194
2194
  projects
2195
- .command(`updateSmtp`)
2195
+ .command(`update-smtp`)
2196
2196
  .description(``)
2197
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2197
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2198
2198
  .requiredOption(`--enabled <enabled>`, `Enable custom SMTP service`, parseBool)
2199
- .option(`--senderName <senderName>`, `Name of the email sender`)
2200
- .option(`--senderEmail <senderEmail>`, `Email of the sender`)
2201
- .option(`--replyTo <replyTo>`, `Reply to email`)
2199
+ .option(`--sender-name <sender-name>`, `Name of the email sender`)
2200
+ .option(`--sender-email <sender-email>`, `Email of the sender`)
2201
+ .option(`--reply-to <reply-to>`, `Reply to email`)
2202
2202
  .option(`--host <host>`, `SMTP server host name`)
2203
2203
  .option(`--port <port>`, `SMTP server port`, parseInteger)
2204
2204
  .option(`--username <username>`, `SMTP server username`)
@@ -2207,14 +2207,14 @@ projects
2207
2207
  .action(actionRunner(projectsUpdateSmtp))
2208
2208
 
2209
2209
  projects
2210
- .command(`createSmtpTest`)
2210
+ .command(`create-smtp-test`)
2211
2211
  .description(``)
2212
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2212
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2213
2213
  .requiredOption(`--emails [emails...]`, `Array of emails to send test email to. Maximum of 10 emails are allowed.`)
2214
- .requiredOption(`--senderName <senderName>`, `Name of the email sender`)
2215
- .requiredOption(`--senderEmail <senderEmail>`, `Email of the sender`)
2214
+ .requiredOption(`--sender-name <sender-name>`, `Name of the email sender`)
2215
+ .requiredOption(`--sender-email <sender-email>`, `Email of the sender`)
2216
2216
  .requiredOption(`--host <host>`, `SMTP server host name`)
2217
- .option(`--replyTo <replyTo>`, `Reply to email`)
2217
+ .option(`--reply-to <reply-to>`, `Reply to email`)
2218
2218
  .option(`--port <port>`, `SMTP server port`, parseInteger)
2219
2219
  .option(`--username <username>`, `SMTP server username`)
2220
2220
  .option(`--password <password>`, `SMTP server password`)
@@ -2222,120 +2222,120 @@ projects
2222
2222
  .action(actionRunner(projectsCreateSmtpTest))
2223
2223
 
2224
2224
  projects
2225
- .command(`updateTeam`)
2225
+ .command(`update-team`)
2226
2226
  .description(``)
2227
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2228
- .requiredOption(`--teamId <teamId>`, `Team ID of the team to transfer project to.`)
2227
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2228
+ .requiredOption(`--team-id <team-id>`, `Team ID of the team to transfer project to.`)
2229
2229
  .action(actionRunner(projectsUpdateTeam))
2230
2230
 
2231
2231
  projects
2232
- .command(`getEmailTemplate`)
2232
+ .command(`get-email-template`)
2233
2233
  .description(``)
2234
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2234
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2235
2235
  .requiredOption(`--type <type>`, `Template type`)
2236
2236
  .requiredOption(`--locale <locale>`, `Template locale`)
2237
2237
  .action(actionRunner(projectsGetEmailTemplate))
2238
2238
 
2239
2239
  projects
2240
- .command(`updateEmailTemplate`)
2240
+ .command(`update-email-template`)
2241
2241
  .description(``)
2242
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2242
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2243
2243
  .requiredOption(`--type <type>`, `Template type`)
2244
2244
  .requiredOption(`--locale <locale>`, `Template locale`)
2245
2245
  .requiredOption(`--subject <subject>`, `Email Subject`)
2246
2246
  .requiredOption(`--message <message>`, `Template message`)
2247
- .option(`--senderName <senderName>`, `Name of the email sender`)
2248
- .option(`--senderEmail <senderEmail>`, `Email of the sender`)
2249
- .option(`--replyTo <replyTo>`, `Reply to email`)
2247
+ .option(`--sender-name <sender-name>`, `Name of the email sender`)
2248
+ .option(`--sender-email <sender-email>`, `Email of the sender`)
2249
+ .option(`--reply-to <reply-to>`, `Reply to email`)
2250
2250
  .action(actionRunner(projectsUpdateEmailTemplate))
2251
2251
 
2252
2252
  projects
2253
- .command(`deleteEmailTemplate`)
2253
+ .command(`delete-email-template`)
2254
2254
  .description(``)
2255
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2255
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2256
2256
  .requiredOption(`--type <type>`, `Template type`)
2257
2257
  .requiredOption(`--locale <locale>`, `Template locale`)
2258
2258
  .action(actionRunner(projectsDeleteEmailTemplate))
2259
2259
 
2260
2260
  projects
2261
- .command(`getSmsTemplate`)
2261
+ .command(`get-sms-template`)
2262
2262
  .description(``)
2263
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2263
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2264
2264
  .requiredOption(`--type <type>`, `Template type`)
2265
2265
  .requiredOption(`--locale <locale>`, `Template locale`)
2266
2266
  .action(actionRunner(projectsGetSmsTemplate))
2267
2267
 
2268
2268
  projects
2269
- .command(`updateSmsTemplate`)
2269
+ .command(`update-sms-template`)
2270
2270
  .description(``)
2271
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2271
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2272
2272
  .requiredOption(`--type <type>`, `Template type`)
2273
2273
  .requiredOption(`--locale <locale>`, `Template locale`)
2274
2274
  .requiredOption(`--message <message>`, `Template message`)
2275
2275
  .action(actionRunner(projectsUpdateSmsTemplate))
2276
2276
 
2277
2277
  projects
2278
- .command(`deleteSmsTemplate`)
2278
+ .command(`delete-sms-template`)
2279
2279
  .description(``)
2280
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2280
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2281
2281
  .requiredOption(`--type <type>`, `Template type`)
2282
2282
  .requiredOption(`--locale <locale>`, `Template locale`)
2283
2283
  .action(actionRunner(projectsDeleteSmsTemplate))
2284
2284
 
2285
2285
  projects
2286
- .command(`listWebhooks`)
2286
+ .command(`list-webhooks`)
2287
2287
  .description(``)
2288
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2288
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2289
2289
  .option(`--console`, `Get the resource console url`)
2290
2290
  .action(actionRunner(projectsListWebhooks))
2291
2291
 
2292
2292
  projects
2293
- .command(`createWebhook`)
2293
+ .command(`create-webhook`)
2294
2294
  .description(``)
2295
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2295
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2296
2296
  .requiredOption(`--name <name>`, `Webhook name. Max length: 128 chars.`)
2297
2297
  .requiredOption(`--events [events...]`, `Events list. Maximum of 100 events are allowed.`)
2298
2298
  .requiredOption(`--url <url>`, `Webhook URL.`)
2299
2299
  .requiredOption(`--security <security>`, `Certificate verification, false for disabled or true for enabled.`, parseBool)
2300
2300
  .option(`--enabled <enabled>`, `Enable or disable a webhook.`, parseBool)
2301
- .option(`--httpUser <httpUser>`, `Webhook HTTP user. Max length: 256 chars.`)
2302
- .option(`--httpPass <httpPass>`, `Webhook HTTP password. Max length: 256 chars.`)
2301
+ .option(`--http-user <http-user>`, `Webhook HTTP user. Max length: 256 chars.`)
2302
+ .option(`--http-pass <http-pass>`, `Webhook HTTP password. Max length: 256 chars.`)
2303
2303
  .action(actionRunner(projectsCreateWebhook))
2304
2304
 
2305
2305
  projects
2306
- .command(`getWebhook`)
2306
+ .command(`get-webhook`)
2307
2307
  .description(``)
2308
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2309
- .requiredOption(`--webhookId <webhookId>`, `Webhook unique ID.`)
2308
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2309
+ .requiredOption(`--webhook-id <webhook-id>`, `Webhook unique ID.`)
2310
2310
  .option(`--console`, `Get the resource console url`)
2311
2311
  .action(actionRunner(projectsGetWebhook))
2312
2312
 
2313
2313
  projects
2314
- .command(`updateWebhook`)
2314
+ .command(`update-webhook`)
2315
2315
  .description(``)
2316
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2317
- .requiredOption(`--webhookId <webhookId>`, `Webhook unique ID.`)
2316
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2317
+ .requiredOption(`--webhook-id <webhook-id>`, `Webhook unique ID.`)
2318
2318
  .requiredOption(`--name <name>`, `Webhook name. Max length: 128 chars.`)
2319
2319
  .requiredOption(`--events [events...]`, `Events list. Maximum of 100 events are allowed.`)
2320
2320
  .requiredOption(`--url <url>`, `Webhook URL.`)
2321
2321
  .requiredOption(`--security <security>`, `Certificate verification, false for disabled or true for enabled.`, parseBool)
2322
2322
  .option(`--enabled <enabled>`, `Enable or disable a webhook.`, parseBool)
2323
- .option(`--httpUser <httpUser>`, `Webhook HTTP user. Max length: 256 chars.`)
2324
- .option(`--httpPass <httpPass>`, `Webhook HTTP password. Max length: 256 chars.`)
2323
+ .option(`--http-user <http-user>`, `Webhook HTTP user. Max length: 256 chars.`)
2324
+ .option(`--http-pass <http-pass>`, `Webhook HTTP password. Max length: 256 chars.`)
2325
2325
  .action(actionRunner(projectsUpdateWebhook))
2326
2326
 
2327
2327
  projects
2328
- .command(`deleteWebhook`)
2328
+ .command(`delete-webhook`)
2329
2329
  .description(``)
2330
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2331
- .requiredOption(`--webhookId <webhookId>`, `Webhook unique ID.`)
2330
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2331
+ .requiredOption(`--webhook-id <webhook-id>`, `Webhook unique ID.`)
2332
2332
  .action(actionRunner(projectsDeleteWebhook))
2333
2333
 
2334
2334
  projects
2335
- .command(`updateWebhookSignature`)
2335
+ .command(`update-webhook-signature`)
2336
2336
  .description(``)
2337
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
2338
- .requiredOption(`--webhookId <webhookId>`, `Webhook unique ID.`)
2337
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2338
+ .requiredOption(`--webhook-id <webhook-id>`, `Webhook unique ID.`)
2339
2339
  .action(actionRunner(projectsUpdateWebhookSignature))
2340
2340
 
2341
2341
  module.exports = {
@@ -218,36 +218,36 @@ const proxyUpdateRuleVerification = async ({ruleId,parseOutput = true, overrideF
218
218
  }
219
219
 
220
220
  proxy
221
- .command(`listRules`)
221
+ .command(`list-rules`)
222
222
  .description(`Get a list of all the proxy rules. You can use the query params to filter your results.`)
223
223
  .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: domain, resourceType, resourceId, url`)
224
224
  .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
225
225
  .action(actionRunner(proxyListRules))
226
226
 
227
227
  proxy
228
- .command(`createRule`)
228
+ .command(`create-rule`)
229
229
  .description(`Create a new proxy rule.`)
230
230
  .requiredOption(`--domain <domain>`, `Domain name.`)
231
- .requiredOption(`--resourceType <resourceType>`, `Action definition for the rule. Possible values are "api", "function"`)
232
- .option(`--resourceId <resourceId>`, `ID of resource for the action type. If resourceType is "api", leave empty. If resourceType is "function", provide ID of the function.`)
231
+ .requiredOption(`--resource-type <resource-type>`, `Action definition for the rule. Possible values are "api", "function"`)
232
+ .option(`--resource-id <resource-id>`, `ID of resource for the action type. If resourceType is "api", leave empty. If resourceType is "function", provide ID of the function.`)
233
233
  .action(actionRunner(proxyCreateRule))
234
234
 
235
235
  proxy
236
- .command(`getRule`)
236
+ .command(`get-rule`)
237
237
  .description(`Get a proxy rule by its unique ID.`)
238
- .requiredOption(`--ruleId <ruleId>`, `Rule ID.`)
238
+ .requiredOption(`--rule-id <rule-id>`, `Rule ID.`)
239
239
  .action(actionRunner(proxyGetRule))
240
240
 
241
241
  proxy
242
- .command(`deleteRule`)
242
+ .command(`delete-rule`)
243
243
  .description(`Delete a proxy rule by its unique ID.`)
244
- .requiredOption(`--ruleId <ruleId>`, `Rule ID.`)
244
+ .requiredOption(`--rule-id <rule-id>`, `Rule ID.`)
245
245
  .action(actionRunner(proxyDeleteRule))
246
246
 
247
247
  proxy
248
- .command(`updateRuleVerification`)
248
+ .command(`update-rule-verification`)
249
249
  .description(``)
250
- .requiredOption(`--ruleId <ruleId>`, `Rule ID.`)
250
+ .requiredOption(`--rule-id <rule-id>`, `Rule ID.`)
251
251
  .action(actionRunner(proxyUpdateRuleVerification))
252
252
 
253
253
  module.exports = {
@@ -27,7 +27,7 @@ const pullResources = async () => {
27
27
  if (cliConfig.all) {
28
28
  for (let action of Object.values(actions)) {
29
29
  cliConfig.all = true;
30
- await action();
30
+ await action({ returnOnZero: true });
31
31
  }
32
32
  } else {
33
33
  const answers = await inquirer.prompt(questionsPullResources[0]);
@@ -92,7 +92,7 @@ const pullFunctions = async ({ code }) => {
92
92
  if (!fs.existsSync(func['path'])) {
93
93
  fs.mkdirSync(func['path'], { recursive: true });
94
94
  }
95
-
95
+
96
96
  if(code === false) {
97
97
  warn("Source code download skipped.");
98
98
  } else if(!func['deployment']) {
@@ -114,16 +114,17 @@ const pullFunctions = async ({ code }) => {
114
114
  overrideForCli: true,
115
115
  parseOutput: false
116
116
  });
117
-
117
+
118
118
  tar.extract({
119
119
  sync: true,
120
120
  cwd: func['path'],
121
121
  file: compressedFileName,
122
122
  strict: false,
123
123
  });
124
-
124
+
125
125
  fs.rmSync(compressedFileName);
126
126
  }
127
+ }
127
128
  }
128
129
 
129
130
  success(`Successfully pulled ${chalk.bold(total)} functions.`);