Run the following command to create a new project:. You will be asked whether using preset or not. Select "Manually select features":. Check TypeScript feature to use Vue Class Component.
You can add other features in addition if you need:. Press y for the question Use class-style component syntax?:. You can answer the remaining questions as your preferences. After finishing this setup process, Vue CLI creates a new project directory with Vue Class Component installed.
You can use yarn command if you prefer:. To use Vue Class Component, you need to configure TypeScript or Babel in your project as it relies on ECMAScript stage 1 decorators which is needed to transpile to run on browsers.