summaryrefslogtreecommitdiff
path: root/Documentation/source/reference/commands.rst
diff options
context:
space:
mode:
authorBertrand Yuan <189593334+bertyuan@users.noreply.github.com>2026-04-27 20:54:16 +0800
committerGitHub <noreply@github.com>2026-04-27 20:54:16 +0800
commit85b6fb59db5fe1112c58eff9d02ae4f9c9b6456d (patch)
tree8c83fc84bd9547630e6733929dec77e102e055a8 /Documentation/source/reference/commands.rst
parent658798b3a2378bb6df16cfbb16d707c6fb719e1e (diff)
parentdbb5e791f0c228369605d126dd590962ebe1eddc (diff)
Merge pull request #21 from bertyuan/Documentationv1.2
docs: add comprehensive documentation for operations
Diffstat (limited to 'Documentation/source/reference/commands.rst')
-rw-r--r--Documentation/source/reference/commands.rst96
1 files changed, 96 insertions, 0 deletions
diff --git a/Documentation/source/reference/commands.rst b/Documentation/source/reference/commands.rst
new file mode 100644
index 0000000..8268400
--- /dev/null
+++ b/Documentation/source/reference/commands.rst
@@ -0,0 +1,96 @@
+Command Reference
+=================
+
+Application
+-----------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 24 52
+
+ * - Command
+ - Description
+ * - ``pnpm dev``
+ - Start the Next.js development server.
+ * - ``pnpm build``
+ - Build the production application.
+ * - ``pnpm start``
+ - Start a built production server.
+ * - ``pnpm preview``
+ - Build and start the production server.
+
+Quality
+-------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 24 52
+
+ * - Command
+ - Description
+ * - ``pnpm lint``
+ - Run project link validation and Biome linting.
+ * - ``pnpm check``
+ - Run Biome checks.
+ * - ``pnpm format``
+ - Format files with Biome.
+ * - ``pnpm test``
+ - Run Vitest once.
+ * - ``pnpm test:watch``
+ - Run Vitest in watch mode.
+ * - ``pnpm test:coverage``
+ - Run tests with coverage.
+
+Data and CMS
+------------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 28 48
+
+ * - Command
+ - Description
+ * - ``pnpm db:generate``
+ - Generate Drizzle migration files.
+ * - ``pnpm db:migrate``
+ - Apply Drizzle migrations.
+ * - ``pnpm db:push``
+ - Push Drizzle schema changes directly.
+ * - ``pnpm db:studio``
+ - Open Drizzle Studio.
+ * - ``pnpm payload:generate``
+ - Generate Payload TypeScript types.
+ * - ``pnpm payload:migrate``
+ - Run Payload migrations.
+ * - ``pnpm payload:migrate:create``
+ - Create a Payload migration.
+
+Email
+-----
+
+.. list-table::
+ :header-rows: 1
+ :widths: 24 52
+
+ * - Command
+ - Description
+ * - ``pnpm email:dev``
+ - Start React Email preview server on port 3001.
+ * - ``pnpm email:build``
+ - Build email templates.
+ * - ``pnpm email:export``
+ - Export email templates.
+
+Documentation
+-------------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 28 48
+
+ * - Command
+ - Description
+ * - ``make -C Documentation html``
+ - Build Sphinx HTML documentation.
+ * - ``make -C Documentation clean``
+ - Remove generated Sphinx build output.