{
    "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run",
    "locale": "en",
    "title": "--dry-run, -n (Dry Run): Knowledge hub | DeLaParra Services",
    "description": "Show what the command WOULD do without actually doing it. Critical safety flag for destructive operations.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run",
        "nl": "https://delaparra-services.nl/nl/kennisbank/dry-run-n-dry-run"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.md",
        "json": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.csv",
            "encodingFormat": "text/csv",
            "name": "dry-run-n-dry-run.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.json",
            "encodingFormat": "application/json",
            "name": "dry-run-n-dry-run.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.md",
            "encodingFormat": "text/markdown",
            "name": "dry-run-n-dry-run.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.pdf",
            "encodingFormat": "application/pdf",
            "name": "dry-run-n-dry-run.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.zip",
            "encodingFormat": "application/zip",
            "name": "dry-run-n-dry-run.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run/skills.zip",
            "encodingFormat": "application/zip",
            "name": "dry-run-n-dry-run-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [--dry-run, -n (Dry Run)](<https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run>)\n\n  \n\nCategory: CLI flags \n\n# --dry-run, -n (Dry Run)\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is --dry-run, -n (Dry Run)?\n\n \n\n--dry-run, -n (Dry Run): Show what the command WOULD do without actually doing it. Critical safety flag for destructive operations. A dry run shows you what a command would change, without changing anything. The tool goes through the same steps, prints the files it would delete or the records it would update, and then stops.\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 --dry-run, -n (Dry Run)\n\n  \n\n### How is --dry-run, -n (Dry Run) used in practice?\n\n \n\nUse it before anything you cannot undo. Before ` rsync --delete ` syncs a folder, before ` git clean ` removes untracked files, before a migration script touches a production database. Read the output first. If the list is longer than you expected, you have found the problem before it cost you anything.\n\n    \n\n### What should you keep in mind with --dry-run, -n (Dry Run)?\n\n \n\nNot every tool calls it the same thing. ` git clean -n `, ` rsync --dry-run `, ` kubectl apply --dry-run=client ` and ` terraform plan ` all do the same job. A dry run is only as accurate as the tool behind it, so a dry run that passes does not prove the real run will succeed. It does tell you what the tool intends to do.\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- [--no-X, --without-X (Negation flag)](<https://delaparra-services.nl/knowledge-hub/no-x-without-x-negation-flag>) \n- [--version, -V (Version)](<https://delaparra-services.nl/knowledge-hub/version-v-version>) \n- [-a, --all (All)](<https://delaparra-services.nl/knowledge-hub/a-all-all>) \n- [-c, --count, --config (Count / Config)](<https://delaparra-services.nl/knowledge-hub/c-count-config-count-config>) \n- [-f, --force (Force)](<https://delaparra-services.nl/knowledge-hub/f-force-force>) \n- [-h, --help (Help)](<https://delaparra-services.nl/knowledge-hub/h-help-help>)\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/dry-run-n-dry-run/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/dry-run-n-dry-run)\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/dry-run-n-dry-run#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run",
                "name": "--dry-run, -n (Dry Run): Knowledge hub | DeLaParra Services",
                "description": "Show what the command WOULD do without actually doing it. Critical safety flag for destructive operations.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run#term",
                    "name": "--dry-run, -n (Dry Run)",
                    "description": "Show what the command WOULD do without actually doing it. Critical safety flag for destructive operations.",
                    "termCode": "dry-run-n-dry-run",
                    "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run",
                    "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/dry-run-n-dry-run#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is --dry-run, -n (Dry Run)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Show what the command WOULD do without actually doing it. Critical safety flag for destructive operations. A dry run shows you what a command would change, without changing anything. The tool goes through the same steps, prints the files it would delete or the records it would update, and then stops."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is --dry-run, -n (Dry Run) used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Use it before anything you cannot undo. Before rsync --delete syncs a folder, before git clean removes untracked files, before a migration script touches a production database. Read the output first. If the list is longer than you expected, you have found the problem before it cost you anything."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with --dry-run, -n (Dry Run)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Not every tool calls it the same thing. git clean -n, rsync --dry-run, kubectl apply --dry-run=client and terraform plan all do the same job. A dry run is only as accurate as the tool behind it, so a dry run that passes does not prove the real run will succeed. It does tell you what the tool intends to do."
                        }
                    }
                ],
                "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/dry-run-n-dry-run#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": "--dry-run, -n (Dry Run)"
                    }
                ]
            },
            {
                "@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/dry-run-n-dry-run#dataset",
                "name": "--dry-run, -n (Dry Run)",
                "description": "Show what the command WOULD do without actually doing it. Critical safety flag for destructive operations.",
                "url": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run",
                "identifier": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run#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": "dry-run-n-dry-run.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dry-run-n-dry-run.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dry-run-n-dry-run.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dry-run-n-dry-run.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dry-run-n-dry-run.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dry-run-n-dry-run-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dry-run-n-dry-run/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}