sdk-for-cli icon indicating copy to clipboard operation
sdk-for-cli copied to clipboard

🚀 Enhancement: Create Organisation using CLI

Open Aarush-Acharya opened this issue 1 year ago • 4 comments

🔖 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?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Aarush-Acharya avatar Jun 15 '24 01:06 Aarush-Acharya

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

FatahChan avatar Jul 01 '24 17:07 FatahChan

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.

choir241 avatar Jul 16 '24 17:07 choir241

@choir27 this looks great

Aarush-Acharya avatar Jul 17 '24 09:07 Aarush-Acharya

@FatahChan great work

Aarush-Acharya avatar Jul 17 '24 09:07 Aarush-Acharya

@Aarush-Acharya thanks for raising the issue. @choir241 is absolutely right in pointing that you should be using the teams command to init a new organization instead.

ChiragAgg5k avatar May 02 '25 12:05 ChiragAgg5k