{
    "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands",
    "locale": "en",
    "title": "env: Knowledge hub | DeLaParra Services",
    "description": "Environment — List all environment variables, or run a command with a specific environment.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/env-cli-commands",
        "nl": "https://delaparra-services.nl/nl/kennisbank/env-cli-commands"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.md",
        "json": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.csv",
            "encodingFormat": "text/csv",
            "name": "env-cli-commands.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.json",
            "encodingFormat": "application/json",
            "name": "env-cli-commands.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.md",
            "encodingFormat": "text/markdown",
            "name": "env-cli-commands.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.pdf",
            "encodingFormat": "application/pdf",
            "name": "env-cli-commands.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.zip",
            "encodingFormat": "application/zip",
            "name": "env-cli-commands.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands/skills.zip",
            "encodingFormat": "application/zip",
            "name": "env-cli-commands-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [env](<https://delaparra-services.nl/knowledge-hub/env-cli-commands>)\n\n  \n\nCategory: CLI commands \n\n# env\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is env?\n\n \n\nenv: Environment — List all environment variables, or run a command with a specific environment. ` env ` shows the environment variables of the current shell, or runs a command with a modified environment. ` env | grep APP ` lists variables starting with APP; ` env APP_ENV=testing php artisan test ` runs the tests with a different value without changing your shell.\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 env\n\n  \n\n### How is env used in practice?\n\n \n\nEnvironment variables are how most applications receive configuration: database credentials, API keys and feature switches. When an application behaves differently than expected, checking what it actually sees is a quick first step.\n\n    \n\n### What should you keep in mind with env?\n\n \n\nYou often see ` #!/usr/bin/env python3 ` at the top of scripts. It finds the interpreter on the user's ` PATH `, which makes the script work across systems where Python lives in different places. Be careful when printing the environment on shared screens or in CI logs, since it may contain secrets.\n\n \n\n## At a glance\n\n   CategoryCLI commands Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More CLI commands terms\n\n \n\n- [cp](<https://delaparra-services.nl/knowledge-hub/cp>) \n- [curl](<https://delaparra-services.nl/knowledge-hub/curl>) \n- [echo](<https://delaparra-services.nl/knowledge-hub/echo>) \n- [export](<https://delaparra-services.nl/knowledge-hub/export>) \n- [grep](<https://delaparra-services.nl/knowledge-hub/grep>) \n- [head](<https://delaparra-services.nl/knowledge-hub/head>)\n\n \n\n[All terms starting with E](<https://delaparra-services.nl/knowledge-hub#letter-e>)\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- ### Bash Defensive Patterns\n\n \n\nMaster defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.\n\n [View skill](<https://delaparra-services.nl/skills/bash-defensive-patterns>) [Download zip](<https://delaparra-services.nl/skills/bash-defensive-patterns/download>) \n- ### Debian Linux Triage\n\n \n\n'Triage and resolve Debian Linux issues with apt, systemd, and AppArmor-aware guidance.'\n\n [View skill](<https://delaparra-services.nl/skills/debian-linux-triage>) [Download zip](<https://delaparra-services.nl/skills/debian-linux-triage/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/env-cli-commands/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/env-cli-commands)\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/env-cli-commands#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands",
                "name": "env: Knowledge hub | DeLaParra Services",
                "description": "Environment — List all environment variables, or run a command with a specific environment.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/env-cli-commands#term",
                    "name": "env",
                    "description": "Environment — List all environment variables, or run a command with a specific environment.",
                    "termCode": "env-cli-commands",
                    "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands",
                    "inLanguage": "en",
                    "keywords": "CLI commands",
                    "dateModified": "2026-11-25T17:46:26+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/env-cli-commands#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/env-cli-commands#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/env-cli-commands#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is env?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Environment — List all environment variables, or run a command with a specific environment. env shows the environment variables of the current shell, or runs a command with a modified environment. env | grep APP lists variables starting with APP; env APP_ENV=testing php artisan test runs the tests with a different value without changing your shell."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is env used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Environment variables are how most applications receive configuration: database credentials, API keys and feature switches. When an application behaves differently than expected, checking what it actually sees is a quick first step."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with env?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "You often see #!/usr/bin/env python3 at the top of scripts. It finds the interpreter on the user's PATH, which makes the script work across systems where Python lives in different places. Be careful when printing the environment on shared screens or in CI logs, since it may contain secrets."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/cli-flag-safety#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/bash-defensive-patterns#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/debian-linux-triage#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/env-cli-commands#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": "env"
                    }
                ]
            },
            {
                "@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/env-cli-commands#dataset",
                "name": "env",
                "description": "Environment — List all environment variables, or run a command with a specific environment.",
                "url": "https://delaparra-services.nl/knowledge-hub/env-cli-commands",
                "identifier": "https://delaparra-services.nl/knowledge-hub/env-cli-commands#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/env-cli-commands#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 commands",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:26+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": "env-cli-commands.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env-cli-commands.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env-cli-commands.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env-cli-commands.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env-cli-commands.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env-cli-commands.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env-cli-commands-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env-cli-commands/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}