Subcommands22 subcommands
nx init
Adds nx.json file and installs nx if not installed already
nx generate
Runs a generator that creates and/or modifies files based on a generator from a collection
nx run
Runs an Architect target with an optional custom builder configuration defined in your project
nx daemon
Prints information about the Nx Daemon process or starts a daemon process
nx graph
Graph dependencies within workspace
nx run-many
Run target for multiple listed projects
nx affected
Run target for affected projects
nx affected:graph
Graph dependencies affected by changes
nx print-affected
Prints information about the projects and targets affected by changes
nx format:check
Check for un-formatted files
nx format:write
Overwrite un-formatted files
nx migrate
Creates a migrations file or runs migrations from the migrations file
nx report
Reports useful version numbers to copy into the Nx issue template
nx workspace-generator
Runs a workspace generator from the tools/generators directory
nx connect
Connect workspace to Nx Cloud
nx reset
Clears all the cached Nx artifacts and metadata about the workspace and shuts down the Nx Daemon
nx repair
Repair any configuration that is no longer supported by Nx
nx exec
Executes any command as if it was a target on the project
nx watch
Watch for changes within projects, and execute commands
nx show
Show information about the workspace (e.g., list of projects)
nx view-logs
Enables you to view and interact with the logs via the advanced analytic UI from Nx Cloud to help you debug your issue. To do this, Nx needs to connect your workspace to Nx Cloud and upload the most recent run details. Only the metrics are uploaded, not the artefacts