Forrest logo
back to context overview

nx

List of commands for nx:

  • nx:tldr:1960d nx: Test a specific project.
    $ nx test ${project}
    try on your machine
    explain this command
  • nx:tldr:1b7bf nx: Execute a target only on projects that have been changed.
    $ nx affected --target ${target}
    try on your machine
    explain this command
  • nx:tldr:3e2f7 nx: Execute a target on all projects in the workspace.
    $ nx run-many --target ${target} --all
    try on your machine
    explain this command
  • nx:tldr:759c7 nx: Execute a target on multiple projects.
    $ nx run-many --target ${target} --projects ${project1},${project2}
    try on your machine
    explain this command
  • nx:tldr:8378b nx: Execute a target on a specific project.
    $ nx run ${project}:${target}
    try on your machine
    explain this command
  • nx:tldr:8fed1 nx: Build a specific project.
    $ nx build ${project}
    try on your machine
    explain this command
  • nx:warp:01981 Migrate Create-React-App project into a Nx Workspace
    $ npx cra-to-nx
    try on your machine
    explain this command
  • nx:warp:01c49 Add Nx to an Existing Project
    $ npx add-nx-to-monorepo
    try on your machine
    explain this command
  • nx:warp:23a90 Create a new Nx workspace with a React application
    $ npx create-nx-workspace@latest ${name} --preset=react
    try on your machine
    explain this command
  • nx:warp:2798e Remove project from Nx workspace
    $ npx nx generate @nrwl/workspace:remove --projectName=${name}
    try on your machine
    explain this command
  • nx:warp:2a924 Generate a new application in your Nx workspace
    $ npx nx g @nrwl/${framework}:application --name=${name}
    try on your machine
    explain this command
  • nx:warp:6df8c View the project graph
    $ npx nx graph
    try on your machine
    explain this command
  • nx:warp:755c4 Test only the affected code in your Nx workspace
    $ npx nx affected:test
    try on your machine
    explain this command
  • nx:warp:879d0 Generate a new library in your Nx workspace
    $ npx nx g @nrwl/${framework}:library --name=${name}
    try on your machine
    explain this command
  • nx:warp:9a387 Create a new Nx workspace
    $ npx create-nx-workspace@latest ${name}
    try on your machine
    explain this command
back to context overview