Skip to content
คำสั่งคำอธิบาย
nuxt.com faviconnpx nuxi add [type] [name]เพิ่ม component, page หรือไฟล์อื่นๆ เข้าสู่ Nuxt project
nuxt.com faviconnpx nuxi analyzeวิเคราะห์ bundle size และ performance ของ Nuxt project
nuxt.com faviconnpx nuxi buildสร้าง production build สำหรับ Nuxt application
nuxt.com faviconnpx nuxi build-modulebuild Nuxt module เพื่อนำไป distribute
nuxt.com faviconnpx nuxi cleanupลบ cache และ temporary files ใน Nuxt project
nuxt.com faviconnpx nuxi devรัน development server สำหรับ Nuxt project
nuxt.com faviconnpx nuxi devtoolsเปิดใช้งาน Nuxt DevTools สำหรับ development และ debugging
nuxt.com faviconnpx nuxi generategenerate static website จาก Nuxt project
nuxt.com faviconnpx nuxi infoแสดงข้อมูล environment และ configuration ของ Nuxt
nuxt.com faviconnpx nuxi init [project-name]สร้าง Nuxt project ใหม่
nuxt.com faviconnpx nuxi module [module-name]สร้าง boilerplate สำหรับ Nuxt module ใหม่
nuxt.com faviconnpx nuxi prepareprepare Nuxt project สำหรับ development (generate types และไฟล์อื่นๆ)
nuxt.com faviconnpx nuxi previewรัน preview server สำหรับ production build ของ Nuxt application
nuxt.com faviconnpx nuxi typecheckตรวจสอบ type errors ใน Nuxt project
nuxt.com faviconnpx nuxi upgradeอัพเกรด version ของ Nuxt และ dependencies ที่เกี่ยวข้อง

npx nuxi add

เพิ่ม component, page หรือไฟล์อื่นๆ เข้าสู่ Nuxt project

bash
npx nuxi add [type] [name]
bash
pnpm nuxi add [type] [name]
bash
yarn nuxi add [type] [name]
bash
bun nuxi add [type] [name]

npx nuxi analyze

วิเคราะห์ bundle size และ performance ของ Nuxt project

bash
npx nuxi analyze
bash
pnpm nuxi analyze
bash
yarn nuxi analyze
bash
bun nuxi analyze

npx nuxi build

สร้าง production build สำหรับ Nuxt application

bash
npx nuxi build
bash
pnpm nuxi build
bash
yarn nuxi build
bash
bun nuxi build

npx nuxi build-module

build Nuxt module เพื่อนำไป distribute

bash
npx nuxi build-module
bash
pnpm nuxi build-module
bash
yarn nuxi build-module
bash
bun nuxi build-module

npx nuxi cleanup

ลบ cache และ temporary files ใน Nuxt project

bash
npx nuxi cleanup
bash
pnpm nuxi cleanup
bash
yarn nuxi cleanup
bash
bun nuxi cleanup

npx nuxi dev

รัน development server สำหรับ Nuxt project

bash
npx nuxi dev
bash
pnpm nuxi dev
bash
yarn nuxi dev
bash
bun nuxi dev

npx nuxi devtools

เปิดใช้งาน Nuxt DevTools สำหรับ development และ debugging

bash
npx nuxi devtools
bash
pnpm nuxi devtools
bash
yarn nuxi devtools
bash
bun nuxi devtools

npx nuxi generate

generate static website จาก Nuxt project

bash
npx nuxi generate
bash
pnpm nuxi generate
bash
yarn nuxi generate
bash
bun nuxi generate

npx nuxi info

แสดงข้อมูล environment และ configuration ของ Nuxt

bash
npx nuxi info
bash
pnpm nuxi info
bash
yarn nuxi info
bash
bun nuxi info

npx nuxi init

สร้าง Nuxt project ใหม่

bash
npx nuxi init [project-name]
bash
pnpm nuxi init [project-name]
bash
yarn nuxi init [project-name]
bash
bun nuxi init [project-name]

npx nuxi module

สร้าง boilerplate สำหรับ Nuxt module ใหม่

bash
npx nuxi module [module-name]
bash
pnpm nuxi module [module-name]
bash
yarn nuxi module [module-name]
bash
bun nuxi module [module-name]

npx nuxi prepare

prepare Nuxt project สำหรับ development (generate types และไฟล์อื่นๆ)

bash
npx nuxi prepare
bash
pnpm nuxi prepare
bash
yarn nuxi prepare
bash
bun nuxi prepare

npx nuxi preview

รัน preview server สำหรับ production build ของ Nuxt application

bash
npx nuxi preview
bash
pnpm nuxi preview
bash
yarn nuxi preview
bash
bun nuxi preview

npx nuxi typecheck

ตรวจสอบ type errors ใน Nuxt project

bash
npx nuxi typecheck
bash
pnpm nuxi typecheck
bash
yarn nuxi typecheck
bash
bun nuxi typecheck

npx nuxi upgrade

อัพเกรด version ของ Nuxt และ dependencies ที่เกี่ยวข้อง

bash
npx nuxi upgrade
bash
pnpm nuxi upgrade
bash
yarn nuxi upgrade
bash
bun nuxi upgrade