New advertisers: 50% off your first month with code FIRSTMONTHSee slots
nrwl avatar

Nx Import

Import, merge, or combine repositories into an Nx workspace while preserving commit history.

skills.sh installs
2.8K
GitHub stars
29
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers subdirectory-at-a-time and whole-repo import strategies, with guidance on when each applies
  • Includes fixes for pnpm workspace globs, missing root dependencies, targetDefaults, and namedInputs not being merged
  • Enforces the destination's existing directory conventions and pins ESLint to v9 to avoid breakage with @nx/eslint
  • Designed for teams adopting Nx across repositories or moving projects into an existing monorepo

Install

$ npx -y skills add nrwl/nx-ai-agents-config --skill nx-import -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Quick Start

  • nx import brings code from a source repository or folder into the current workspace, preserving commit history.
  • After nx 22.6.0, nx import responds with .ndjson outputs and follow-up questions. For earlier versions, always run with --no-interactive and specify all flags directly.
  • Run nx import --help for available options.
  • Make sure the destination directory is empty before importing. EXAMPLE: target has libs/utils and libs/models; source has libs/ui and libs/data-access — you cannot import libs/ into libs/ directly. Import each source library individually.

Primary docs:

Read the nx docs if you have the tools for it.

Import Strategy

Subdirectory-at-a-time (nx import <source> apps --source=apps):

Details

Repository
github.com/nrwl/nx-ai-agents-config
Categories
DevOps & Cloud, Technical Documentation, Git & Releases
First seen
Apr 16, 2026

More from nrwl/nx-ai-agents-config

All 7

Similar to Nx Import

More DevOps & Cloud