--- title: 명령 icon: terminal description: Twenty 개발에 유용한 명령어. --- `npx nx`를 사용해 리포지토리 루트에서 명령을 실행할 수 있습니다. 명시적으로 대상 지정하려면 `npx nx run {project}:{command}`를 사용하세요. ## 앱 시작하기 ```bash npx nx start twenty-front # Frontend dev server (http://localhost:3001) npx nx start twenty-server # Backend server (http://localhost:3000) npx nx run twenty-server:worker # Background worker ``` ## 데이터베이스 ```bash npx nx database:reset twenty-server # Reset and seed database npx nx run twenty-server:database:migrate:prod # Run migrations npx nx run twenty-server:database:migrate:generate --name --type # Generate a migration ``` ## 린팅 ```bash npx nx lint:diff-with-main twenty-front # Lint changed files (fastest) npx nx lint:diff-with-main twenty-server npx nx lint twenty-front --configuration=fix # Auto-fix ``` ## 타입 검사 ```bash npx nx typecheck twenty-front npx nx typecheck twenty-server ``` ## 테스트 ```bash # Frontend npx nx test twenty-front # Jest unit tests npx nx storybook:build twenty-front # Build Storybook npx nx storybook:test twenty-front # Storybook tests # Backend npx nx run twenty-server:test:unit # Unit tests npx nx run twenty-server:test:integration # Integration tests npx nx run twenty-server:test:integration:with-db-reset # Integration with DB reset # Single file (fastest) npx jest path/to/test.test.ts --config=packages/{project}/jest.config.mjs ``` ## GraphQL ```bash npx nx run twenty-front:graphql:generate # Regenerate types npx nx run twenty-front:graphql:generate --configuration=metadata # Metadata schema ``` ## 번역 ```bash npx nx run twenty-front:lingui:extract # Extract strings npx nx run twenty-front:lingui:compile # Compile translations ``` ## 빌드 ```bash npx nx build twenty-shared # Must be built first npx nx build twenty-front npx nx build twenty-server ```