#[SOLVED] Migrate to Cloud

40 messages · Page 1 of 1 (latest)

near spire
#

Hello,

I am trying to migrate my existing appwrite projects into appwrite cloud.

I was studying the CLI commands and doing some testing. I am able to init and retrieve all the projects and collections. But I am unsure how to "push" these projects into appwrite cloud.

Would you point me to some directions where i can read further?

Thanks again

spark flare
near spire
# spark flare You'll need to point to cloud and then deploy: <https://appwrite.io/docs/command...

Thanks @Steven . So I issued the following, after creating an empty project in Cloud:

appwrite client --endpoint https://cloud.appwrite.io/v1 
appwrite client --key XXXXXXX
appwrite client --projectId 641cc836bd3f0b9cab83 --> this is the cloud empty project ID

I hit "Error User (role: guests) missing scope (databases.write)" when i tried to

appwrite deploy collections

I assume it is because i need to deploy database first because my API key already has full permission. I just couldnt find command to deploy database. Would you know what i should proceed next?

I have already done the below prior to connecting to the cloud endpoint

appwrite init project
appwrite init collection
tough briar
#

Have you logged in to your cloud account?

near spire
#

yes I did login before init the project and collection

#

let me redo from the 1st step

#

i've got it working now 🙂

#

thanks a lot

#

so, now i am left with migrating the auth

tough briar
near spire
#

the auth records

#

let me read further, because when i type --help in deploy, i dont see option for this

tough briar
#

Yes. For that you'll need to wait for Steven's answer

P.s. I don't think there is a way to achieve it right now

near spire
#

oh

#

i see, so it is likely there is no way to migrate the auth account yet

near spire
#

ok

#

i will wait for Steven

#

thank you so much for your help @tough briar

tough briar
#

Sure 😀

spark flare
near spire
#

thats right

#

fulll migration

spark flare
near spire
#

ok

#

i will work on it

#

thank you so much @spark flare and @tough briar

#

[SOLVED] Migrate to Cloud

near spire
#

sorry one more question. I noticed that deploy collection does not deploy documents inside

#

any idea how i can migrate all the docs inside the collection too?

#

or, i can only do it using the SDK create_doc method?

#

ok, thanks a lot Steven

near spire
#

Hey sorry again. I noticed that "appwrite init collection" does not retrieve all databases from the source. For example, i have 2 database, each with 2 collections. Both were detected as fetched during the init. But inside appwrite.json, there is only 1 database with 2 collection. the other database is not present. is there a limit of the amount of data that i can init?

#

i retried this 2x and the outcome is the same

spark flare
near spire
#

ok, i willl create an issue

#

thanks a lot Steven

spark flare