yarn tasks push — Yarn CLI reference

Push tasks to be executed from within a running task

Docs/Reference/CLI/tasks/push

yarn tasks push

Push tasks to be executed from within a running task

yarn tasks push <TASKS…>

This command allows a running task to schedule additional tasks to be executed by the daemon. It can only be called from within a task context (i.e., when running inside a task that was started by the daemon).

This is useful for dynamically spawning subtasks based on runtime conditions, such as triggering build steps after certain conditions are met.

Examples#

Schedule the build task from within a running task

yarn tasks push build

Schedule multiple tasks at once

yarn tasks push lint test