scorpiox-executecurl Network

Execute curl-based installation and setup scripts interactively with safety checks, preview, and confirmation prompts before piping to shell.

Supported Platforms

Linux x64 Linux ARM64 macOS ARM64 Windows x64

Flags & Options

Flag Short Description Takes Value
--help -h Show help information and usage instructions Yes

Usage Examples

Basic — Execute a remote install script
# Download and execute an install script from a URL
$ scorpiox-executecurl https://get.example.com/install.sh
Fetching script from https://get.example.com/install.sh ...
Previewing script content (first 50 lines):
────────────────────────────────────────
#!/bin/bash
set -e
echo "Installing example-tool v2.1.0..."
curl -fsSL https://releases.example.com/v2.1.0/bin -o /usr/local/bin/example-tool
chmod +x /usr/local/bin/example-tool
────────────────────────────────────────
Execute this script? [y/N]: y
Installing example-tool v2.1.0...
✓ Installation complete.
Execute a ScorpioX installer
# Use executecurl to safely run the ScorpioX Linux installer
$ scorpiox-executecurl "https://get.scorpiox.net?platform=linux"
Fetching script from https://get.scorpiox.net?platform=linux ...
Previewing script content (first 50 lines):
────────────────────────────────────────
#!/bin/bash
# ScorpioX Code installer for Linux
...
────────────────────────────────────────
Execute this script? [y/N]: y
Downloading scorpiox binaries...
✓ ScorpioX Code installed to /usr/local/bin/
Inspect a script without executing
# Preview the remote script — answer 'n' to skip execution
$ scorpiox-executecurl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh
Fetching script from https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh ...
Previewing script content (first 50 lines):
────────────────────────────────────────
#!/usr/bin/env bash
# nvm install script
NVM_DIR="$HOME/.nvm"
...
────────────────────────────────────────
Execute this script? [y/N]: n
Aborted. Script was NOT executed.
Pipe-safe alternative to curl | bash
# Instead of the risky curl | bash pattern:
#   curl -fsSL https://example.com/setup.sh | bash
# Use scorpiox-executecurl for safe, auditable execution:
$ scorpiox-executecurl https://example.com/setup.sh
Fetching script from https://example.com/setup.sh ...
⚠  Script contains 'sudo' — elevated privileges will be requested.
⚠  Script size: 2.4 KB (87 lines)
Previewing script content (first 50 lines):
────────────────────────────────────────
#!/bin/bash
sudo apt-get update && sudo apt-get install -y build-essential
...
────────────────────────────────────────
Execute this script? [y/N]: y
[sudo] password for user: ****
✓ Setup complete.
Display help
# Show usage information and available options
$ scorpiox-executecurl --help
scorpiox-executecurl — Interactive curl script executor

USAGE:
    scorpiox-executecurl [OPTIONS] <URL>

DESCRIPTION:
    Fetches a script from a remote URL, displays a preview
    of its contents, and prompts for confirmation before
    executing it locally. A safer alternative to curl | bash.

OPTIONS:
    -h, --help    Show this help message

Source & Build Info

Source File
scorpiox/scorpiox-executecurl.c
Lines of Code
358
Dependencies
libsxutil

Related Tools