{
    "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch",
    "locale": "en",
    "title": "-w, --watch (Watch): Knowledge hub | DeLaParra Services",
    "description": "Keep the command running and re-run it (or refresh output) whenever the input changes.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/w-watch-watch",
        "nl": "https://delaparra-services.nl/nl/kennisbank/w-watch-watch"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.md",
        "json": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.csv",
            "encodingFormat": "text/csv",
            "name": "w-watch-watch.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.json",
            "encodingFormat": "application/json",
            "name": "w-watch-watch.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.md",
            "encodingFormat": "text/markdown",
            "name": "w-watch-watch.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.pdf",
            "encodingFormat": "application/pdf",
            "name": "w-watch-watch.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.zip",
            "encodingFormat": "application/zip",
            "name": "w-watch-watch.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch/skills.zip",
            "encodingFormat": "application/zip",
            "name": "w-watch-watch-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [-w, --watch (Watch)](<https://delaparra-services.nl/knowledge-hub/w-watch-watch>)\n\n  \n\nCategory: CLI flags \n\n# -w, --watch (Watch)\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is -w, --watch (Watch)?\n\n \n\n-w, --watch (Watch): Keep the command running and re-run it (or refresh output) whenever the input changes. Watch mode keeps a command running and repeats its work whenever something changes. ` npm run dev ` with Vite rebuilds your assets when you save a file. ` jest --watch ` reruns the tests that relate to your change. ` kubectl get pods -w ` keeps printing as pods start and stop.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about -w, --watch (Watch)\n\n  \n\n### How is -w, --watch (Watch) used in practice?\n\n \n\nThe point is a short feedback loop. You save, and a second later you see whether it worked. That keeps you in the flow instead of switching to a terminal every few minutes.\n\n    \n\n### What should you keep in mind with -w, --watch (Watch)?\n\n \n\nWatchers use file system events, and those have limits. Very large projects can hit the operating system's limit on watched files, and some setups with Docker or network drives miss changes completely. If a watcher seems to ignore your edits, that is usually the cause. Restarting it is a quick check; raising the watch limit or using polling is the longer fix.\n\n \n\n## At a glance\n\n   CategoryCLI flags Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More CLI flags terms\n\n \n\n- [-r, -R, --recursive (Recursive)](<https://delaparra-services.nl/knowledge-hub/r-r-recursive-recursive>) \n- [-t, --tag, -t (tty) (Tag / Allocate TTY)](<https://delaparra-services.nl/knowledge-hub/t-tag-t-tty-tag-allocate-tty>) \n- [-u, --upstream, --user (Upstream / User)](<https://delaparra-services.nl/knowledge-hub/u-upstream-user-upstream-user>) \n- [-v, --verbose (Verbose)](<https://delaparra-services.nl/knowledge-hub/v-verbose-verbose>) \n- [-x, --exclude, -x (trace) (Extract / Exclude / Trace)](<https://delaparra-services.nl/knowledge-hub/x-exclude-x-trace-extract-exclude-trace>) \n- [-y, --yes, --assume-yes (Auto-Yes)](<https://delaparra-services.nl/knowledge-hub/y-yes-assume-yes-auto-yes>)\n\n \n\n[All terms starting with a number or symbol](<https://delaparra-services.nl/knowledge-hub#letter-other>)\n\n \n\n## Skills\n\n \n\n- ### CLI flag safety\n\n \n\nUse before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.\n\n [View skill](<https://delaparra-services.nl/skills/cli-flag-safety>) [Download zip](<https://delaparra-services.nl/skills/cli-flag-safety/download>) \n- ### Docker Destructive Command Guardrails\n\n \n\nUse this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to \"clean up\", \"clear the cache\", \"start fresh\", \"wipe everything\", \"nuke it\", \"reset\", \"force remove\", or \"tear down\" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — \\`docker rm\\`,\n\n [View skill](<https://delaparra-services.nl/skills/docker-destructive-guardrails>) [Download zip](<https://delaparra-services.nl/skills/docker-destructive-guardrails/download>) \n- ### ShellCheck Configuration and Static Analysis\n\n \n\nMaster ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.\n\n [View skill](<https://delaparra-services.nl/skills/shellcheck-configuration>) [Download zip](<https://delaparra-services.nl/skills/shellcheck-configuration/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/w-watch-watch/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [The terminal commands you actually need](<https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt>) \n- [The terminal and PowerShell](<https://delaparra-services.nl/manuals/de-terminal-en-powershell>)\n\n \n\n## Related services\n\n \n\n- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)\n\nIf you want to use a coding agent, we provide all the infrastructure to help it work efficiently.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/w-watch-watch)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch",
                "name": "-w, --watch (Watch): Knowledge hub | DeLaParra Services",
                "description": "Keep the command running and re-run it (or refresh output) whenever the input changes.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#term",
                    "name": "-w, --watch (Watch)",
                    "description": "Keep the command running and re-run it (or refresh output) whenever the input changes.",
                    "termCode": "w-watch-watch",
                    "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch",
                    "inLanguage": "en",
                    "keywords": "CLI flags",
                    "dateModified": "2026-11-25T17:46:23+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is -w, --watch (Watch)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Keep the command running and re-run it (or refresh output) whenever the input changes. Watch mode keeps a command running and repeats its work whenever something changes. npm run dev with Vite rebuilds your assets when you save a file. jest --watch reruns the tests that relate to your change. kubectl get pods -w keeps printing as pods start and stop."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is -w, --watch (Watch) used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The point is a short feedback loop. You save, and a second later you see whether it worked. That keeps you in the flow instead of switching to a terminal every few minutes."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with -w, --watch (Watch)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Watchers use file system events, and those have limits. Very large projects can hit the operating system's limit on watched files, and some setups with Docker or network drives miss changes completely. If a watcher seems to ignore your edits, that is usually the cause. Restarting it is a quick check; raising the watch limit or using polling is the longer fix."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/cli-flag-safety#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-destructive-guardrails#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/shellcheck-configuration#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/de-terminal-en-powershell#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "-w, --watch (Watch)"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#dataset",
                "name": "-w, --watch (Watch)",
                "description": "Keep the command running and re-run it (or refresh output) whenever the input changes.",
                "url": "https://delaparra-services.nl/knowledge-hub/w-watch-watch",
                "identifier": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/w-watch-watch#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "CLI flags",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:23+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "w-watch-watch.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "w-watch-watch.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "w-watch-watch.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "w-watch-watch.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "w-watch-watch.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/w-watch-watch.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "w-watch-watch-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/w-watch-watch/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}