{"id":30196238,"url":"https://github.com/9-5/uex","last_synced_at":"2026-04-13T06:46:20.363Z","repository":{"id":307998224,"uuid":"1031314036","full_name":"9-5/uex","owner":"9-5","description":"A simple, powerful command-line tool that brings Unix-like remote script execution to the Windows Command Prompt.","archived":false,"fork":false,"pushed_at":"2025-08-03T13:41:14.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-13T06:46:07.205Z","etag":null,"topics":["automation","batch","batch-script","cli","command-line-tool","csharp","curl","dotnet","portable","remote-execution","scripting","shell","utility","windows"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/9-5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-03T13:35:27.000Z","updated_at":"2025-08-03T13:45:02.000Z","dependencies_parsed_at":"2025-08-03T15:23:54.093Z","dependency_job_id":"c3766fce-8a18-4899-9fde-785367d8dd5a","html_url":"https://github.com/9-5/uex","commit_stats":null,"previous_names":["9-5/uex"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/9-5/uex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-5%2Fuex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-5%2Fuex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-5%2Fuex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-5%2Fuex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9-5","download_url":"https://codeload.github.com/9-5/uex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-5%2Fuex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31742941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","batch","batch-script","cli","command-line-tool","csharp","curl","dotnet","portable","remote-execution","scripting","shell","utility","windows"],"created_at":"2025-08-13T05:17:13.542Z","updated_at":"2026-04-13T06:46:20.357Z","avatar_url":"https://github.com/9-5.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# uex - URL Executor for Windows\n\nA simple, powerful command-line tool that brings Unix-like remote script execution to the Windows Command Prompt.\n\n# What is uex?\n\nIn Linux, it's common to execute a remote script with a single command, like `curl https://example.com/script.sh | sh`. The only native support for this is within Powershell, via `irm https://example.com/script.ps1 | iex` This is not natively possible in the Windows Command Prompt (cmd.exe).\n\nuex (URL Execute) bridges this gap. It's a small, portable utility that allows you to securely execute remote Windows batch scripts (.bat) directly from a URL or a pipe, without manually downloading the file first.\n\n## Features\n\n- Direct URL Execution: Run a script directly from its URL.\n\n- Piped Execution: Works seamlessly with curl or other tools that output to stdout.\n\n- Security-Focused: Enforces the use of https:// to prevent insecure downloads over HTTP.\n\n- Portable: A single, dependency-less executable. No installation required.\n\n- Multi-Architecture: Pre-compiled for x64, x86, and Arm64 Windows systems.\n\n## Usage\n\nuex supports two primary modes of operation.\n1. Direct URL Execution\n\nProvide the HTTPS URL to the script as the only argument.\n\n`uex https://example.com/script.bat`\n\n2. Piped Execution\n\nPipe the output of curl (or another command) directly into uex.\n\n`curl https://example.com/script.bat | uex`\n\n\n## Installation\n\n1. Navigate to the [Releases](https://github.com/9-5/uex/releases) page.\n\n2. Choose the executable that matches your system's architecture:\n\n- `uex-x64.exe` for 64-bit Windows (most common).\n\n- `uex-x86.exe` for 32-bit Windows.\n\n- `uex-arm64.exe` for Windows on Arm devices.\n\n3. Place the executable in a folder that is part of your system's PATH environment variable `(e.g., C:\\Windows\\System32)` to make it accessible from anywhere in the command line.\n\n## Testing Your uex Setup\n\nTo ensure uex is working correctly, you can use the following test script. It verifies that variables, goto jumps, loops, and user input are all handled properly.\nTest Script (test-script.bat)\n```\n@echo off\n:: =====================================\n:: :: Test Script for the 'uex' utility\n:: =====================================\nREM This is another style of comment.\n\necho.\necho --- UEX Test Script Initialized ---\necho This test will now check several batch features.\necho.\n\n:: 1. Test basic ECHO and reading environment variables\necho Hello, %USERNAME%! You're running this on computer: %COMPUTERNAME%.\necho The current date is: %DATE%\necho.\n\n:: 2. Test setting and reading a local variable\nset \"MY_VAR=Variable test was successful!\"\necho Testing local variables...\necho    Result: %MY_VAR%\necho.\n\n:: 3. Test GOTO and labels to ensure script flow is handled\necho Testing GOTO jump...\ngoto SkipSection\n\necho THIS LINE SHOULD NEVER APPEAR IN THE OUTPUT.\n\n:SkipSection\necho    GOTO jump was successful!\necho.\n\n:: 4. Test a simple FOR loop\necho Testing a FOR loop to count from 1 to 3:\nfor /L %%i in (1,1,3) do (\n    echo    - Loop iteration %%i\n)\necho.\n\n:: 5. Test user input\necho Testing user input...\nset /p \"USER_INPUT=Please type something and press Enter: \"\necho You typed: \"%USER_INPUT%\"\necho.\n\necho --- Test Script Finished Successfully ---\necho.\npause\n```\n\n### How to Run the Test\n\n1. Host the script: Copy the code above and create a new, public GitHub Gist.\n\n2. Get the Raw URL: On the Gist page, click the \"Raw\" button to get the direct URL to the file.\n\n3. Execute with uex: Run the following command in your terminal, replacing the URL with your own.\n\n`uex https://gist.githubusercontent.com/YourUser/abc.../raw/.../test-script.bat`\n\nIf the script runs through all the steps and displays the final success message, your `uex` tool is working perfectly.\n\n## Security Warning\n\nExecuting scripts from the internet is inherently dangerous. You are giving code from a remote source the ability to run commands on your computer.\n\n- Only run scripts from sources you absolutely trust.\n\n- Review the script's code before running it to understand what it does.\n\n- `uex` enforces `https` to protect against man-in-the-middle attacks, but it cannot protect you from a malicious script.\n\nUse this tool responsibly.\n## Building from Source\n\nIf you wish to build uex yourself:\n\n1) Prerequisites: Install the [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0).\n2) Clone the repository: `git clone https://github.com/9-5/uex.git`\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9-5%2Fuex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9-5%2Fuex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9-5%2Fuex/lists"}