appwrite / sdk-for-cli

[READ-ONLY] Official Appwrite CLI >_
BSD 3-Clause "New" or "Revised" License
91 stars 26 forks source link

šŸš€ Enhancement: Create Organisation using CLI #130

Open Aarush-Acharya opened 5 months ago

Aarush-Acharya commented 5 months ago

šŸ”– Enhancement description

Allow creation of an organisation using CLI

šŸŽ¤ Pitch

I work for an Open Source voice platform Resonate, i am preparing a script, to clone our main backend architecture on appwrite self hosted on the contributors local host. The script needs to be as automated as possible but

appwrite projects create --projectId resonate --name Resonate --teamId 666ce18b003caf6274b6

The command to create a project requires the teamId (organisation iD) as an argument but as there is no means for me to create an organisation the from CLI I would have to take this teamId from the contributor as an input. If there was a command to create an organisation from the CLI hence providing the id of it as the teamId argument in the create project command this would entirely automate my script without the need of any input from the contributor

šŸ‘€ Have you spent some time to check if this issue has been raised before?

šŸ¢ Have you read the Code of Conduct?

FatahChan commented 4 months ago

Hi I created a local patch to do something similar

Basically added a new question asking if you want to create a new organization or not

image image

Will do a pull request later on

choir241 commented 4 months ago

On Appwrite version 1.6, the user will be able to initialize a team. I have confirmed this successfully creates a team by using the following command and pushing it to the Appwrite Console.

appwrite init team
? What would you like to name your team? My Awesome Team
? What ID would you like to have for your team? unique()
āœ“ Success:
ā„¹ Info: Next you can use 'appwrite push team' to deploy the changes.
Aarush-Acharya commented 4 months ago

@choir27 this looks great

Aarush-Acharya commented 4 months ago

@FatahChan great work