diff --git a/www/apps/resources/app/medusa-cli/commands/db/page.mdx b/www/apps/resources/app/medusa-cli/commands/db/page.mdx index e6ad4c82ef..8f70bd6835 100644 --- a/www/apps/resources/app/medusa-cli/commands/db/page.mdx +++ b/www/apps/resources/app/medusa-cli/commands/db/page.mdx @@ -154,6 +154,8 @@ Use this command if you're setting up a Medusa project or database manually. +--- + ## db\:create Creates a database for the Medusa application with the specified name, if it doesn't exit. @@ -170,7 +172,7 @@ Use this command if you want to only create a database. -## Options +### Options @@ -229,6 +231,8 @@ Use this command if you want to only create a database.
+--- + ## db\:generate Generate a migration file for the latest changes in one or more modules. @@ -237,7 +241,7 @@ Generate a migration file for the latest changes in one or more modules. npx medusa db:generate ``` -## Arguments +### Arguments @@ -268,6 +272,8 @@ npx medusa db:generate
+--- + ## db\:migrate Run the latest migrations to reflect changes on the database, and sync link definitions with the database. @@ -363,6 +369,8 @@ Use this command if you've updated the Medusa packages, or you've created custom +--- + ## db\:rollback Revert the last migrations ran on one or more modules. @@ -371,6 +379,8 @@ Revert the last migrations ran on one or more modules. npx medusa db:rollback ``` +### Arguments + @@ -400,6 +410,8 @@ npx medusa db:rollback
+--- + ## db\:sync-links Sync the database with the link definitions in your application, including the definitions in Medusa's modules.