Skip to content
Back

Trouble Creating Database and Collections via CLI

  • 0
  • Databases
  • Web
  • Storage
joyston
29 Jan, 2026, 17:56

I’ve set up my project credentials (endpoint, project ID) and generated an API key. I’m currently focusing on creating only the database and collections (tables) using the CLI , without using the dashboard.

I’ve attempted to create the database and collections via script, but it’s not working as expected.

Could you please clarify: The correct steps or order for creating a database and collections via CLI or Management API Any required parameters or permissions I might be missing

If there are any working examples, scripts,or documentation links, that would be extremely helpful.

TL;DR
Developers are having trouble creating a database and collections via CLI and are looking for guidance, examples, or scripts. They have set up project credentials and API key. Solution: They should refer to the documentation provided at the given link to understand the correct steps and order for creating databases and collections.
joyston
29 Jan, 2026, 17:57

<@257295349314486273>

Tessa
29 Jan, 2026, 18:02

cc <@501784879638249472>

Aditya Oberai
30 Jan, 2026, 15:59

<@873079788720496641> can you please share what script you used?

joyston
31 Jan, 2026, 04:09

<@501784879638249472> I don’t have the script right now since I deleted it while experimenting. If you have any scripts, examples or docs on creating a database and table (collection) via the CLI, that would be really helpful.

Chirag Aggarwal
31 Jan, 2026, 12:55
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more