Skip to content

Nx Conf on October 17th in Phoenix AZ!Nx Conf on October 17th in Phoenix AZ, do not miss it! Tickets, Speakers, Schedule and more →

Main navigation

Nx DocsNx Cloud DocsPackagesCommunityNx ConfNx CloudNx ConsultingNx on Github
14k+
  • Getting Started
    • Intro to Nx
    • Core Tutorial
    • React Tutorial
    • Angular Tutorial
    • Node Tutorial
    Core Features
    • Run Tasks
    • Cache Task Results
    • Explore the Graph
    • Distribute Task Execution
    • Integrate with Editors
    • Automate Updating Dependencies
    • Enforce Project Boundaries
    Plugin Features
    • Use Task Executors
    • Use Code Generators
    • Create Your Own Plugin
    Concepts
    • Integrated Repos vs. Package-Based Repos
    • Mental Model
    • How Caching Works
    • Distributed Task Execution Guide
    • Task Pipeline Configuration
    • Affected
    • More Concept Guides »
    Recipes
    • CI Setup
    • Adopting Nx
    • All Recipes »
    Reference
    • Commands
    • nx.json
    • Project Configuration
    • .nxignore
    • Environment Variables
    • Packages
    • Nx Devkit

Export Project Graph to JSON

If you prefer to analyze the underlying data of the project graph with a script or some other tool, you can run:

nx graph --file=output.json

This will give you all the information that is used to create the project graph visualization.

Related Documentation

Concepts

  • How the Project Graph is Built

Recipes

  • Disable Graph Links Created from Analyzing Source Files
  • Project Graph Plugins
  • Resolve Circular Dependencies

Reference

  • graph
Report an issueEdit this page

Footer

Nx

Smart, Fast and Extensible Build System

TwitterGitHubSlackNewsletter

Resources

  • Blog
  • Youtube Channel
  • Nx Playbook
  • Nrwl
  • Press kit

Help

  • Documentation
  • Community
  • StackOverflow
  • Report Issues

Community

  • Twitter
  • Github
  • Newsletter
  • Slack
  • Help Us

Solutions

  • Nx
  • NxCloud
  • Nrwl

© 2022 made with by