Hello ! I'm trying to utilize appwrite cli on ci server, but can't find proper command related to enabling oAuth provides.
I tried couple:
appwrite projects updateAuthStatus --projectId projectId --method google --status true
β Error Invalid method: Value must be one of (email-password, magic-url, anonymous, invites, jwt, phone)
appwrite projects updateOAuth2 --projectId projectId --provider google --appId appId --secret secret --enabled true
error: unknown option '--enabled'
Could someone help with a proper command ? Help (-h
) flag doesn't provide info about how to enable oAuth for google/apple
appwrite projects updateAuthStatus --projectId projectId -h
- looks like only supports email-password,magic-url,anonymous,invites,jwt,phone
Usage: index projects updateAuthStatus [options]
Options:
--projectId <projectId> Project unique ID.
--method <method> Auth Method. Possible values: email-password,magic-url,anonymous,invites,jwt,phone
--status <status> Set the status of this auth method.
-h, --help display help for command
Usage: index projects updateOAuth2 [options]
Options:
--projectId <projectId> Project unique ID.
--provider <provider> Provider Name
--appId <appId> Provider app ID. Max length: 256 chars.
--secret <secret> Provider secret key. Max length: 512 chars.
-h, --help display help for command
I guess the best and fastest and easiest way is to do it vai console
Yeah, but I want to set-up instance via ci or some orch like ansible or chef
mm, pretty valid point and would later for sure will come handy
I guess did you tried enabling one by one? can see apple and google both seems to be there
I can't enable them by cli, because list of argument limited to email-password,magic-url,anonymous,invites,jwt,phone
I can do something like - appwrite projects updateAuthStatus --projectId projectId --method jwt --status false
but not anything related to enablind oAuth providers via cli. I can set-up them with secrets and appId, but not enable them...this looks really weird to me
updateOAuth2 also doesn't support anything related to enabling provider
Usage: projects updateOAuth2 [options]
Options:
--projectId <projectId> Project unique ID.
--provider <provider> Provider Name
--appId <appId> Provider app ID. Max length: 256 chars.
--secret <secret> Provider secret key. Max length: 512 chars.
-h, --help display help for command
mm, may be might be wrong, but it seems I guess we can only set the ids only... to enable & disable have to be done via Console itself
I remember that @Steven said that everything we can do via console we should be able to do via cli too
yeah, looks like console uses payload with enabled
field, but cli doesn't support such option π¦
mm π¦ I guess, this can new feature request
looks like it should support
looks like update to latest version of cli was needed...sorry π
ahh no worries, it's great you found the way
--enabled true
in updateOAuth2 using 1.2.1 version of cli works fine
[SOLVED] Proper CLI command to enable google/apple oauth
Recommended threads
- Bug Report: Appwrite Console UI Issue on...
Steps to Reproduce: - Navigate to any collection page in the Appwrite console UI. - Open the menu and click on "Create Collection." - Observe that the dialog to...
- Current User is Not authorized
recreating same Thread
- Account Status
Hello! I'm a student and am in the GitHub Student Organization, and according to GitHub, I am recieving pro membership via the Student Dev Pack. However, when I...