Add Nx to an existing project

In many situations, you have an existing codebase and want to improve it with Nx using an incremental adoption approach.

Thanks to Nx's modular architecture, you can start with just Nx Core and then gradually add technology-specific plugins, CI integrations, or other capabilities as your requirements evolve.

Getting started is remarkably simple. You can add Nx to any existing project with a single command:

nx init

(Note, make sure you have Nx installed globally or use npx if you're in a JavaScript environment)

This command automatically detects your underlying workspace structure, whether it's a monorepo, a single project, or something in between. Nx will then ask you a series of targeted questions about your setup and preferences, using your answers to auto-configure itself seamlessly into your existing workspace. This intelligent setup process ensures you get the benefits of Nx with minimal configuration changes or disruption to your current development workflow.

Here are some guides that give you more details based on the technology stack you're using: