
Is it possible to create an organization with the CLI?

I figure it would have to be with appwrite teams ...
but I think that's limited to in-project teams.

You're correct on the main assumption that the teams is used for the in-project teams.
But this is one of the great things in Appwrite it uses the same logic in-project for managing the system-wide project, your console.
For example you can see here that the teamsCreate
function is used for creating system-wide organization
The reason it create that team in the system-wide level is because the SDK use for that one is the console
one as you can see two lines before
let sdk = await sdkForConsole();
In conclusion, if you'll use the CLI as JavaScript library you'll be able to create system-wide organization just as in the code above. Otherwise it's not an option.

use the CLI as JavaScript library
what do you mean by this? By CLI I mean the command line interface https://appwrite.io/docs/command-line-deployment

I mean by creating a JavaScript project For example you create a node js project Then install the cli SDK
npm install appwrite-cli
And in your code you can write something like this
function createOrg(orgName){
let sdk = await sdkForConsole();
response = await teamsCreate({
teamId: 'unique()',
name: orgName,
sdk,
parseOutput: false
})
}
Then in your index.js
createOrg('Org1');
And run it
node index.js

Of course this is a rough coding, you'll need to add the async
and the error handling

So I guess creating an organization is impossible with just using the command line interface?

Otherwise it's not an option. Yes

best to create a feature request for this
Recommended threads
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- Adding Domain to Sites [Self Hosted]
I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAI...
- Need help migrating from self hosted to ...
Hi! I am using self hosted appwrite for testing stuff out and now it's prod ready I want to deplot it to the cloud version. It gave me this error when fetchin...
