swift-sh is a command-line utility that makes it practical to write Swift scripts with third-party dependencies. Normally, adding external Swift packages requires converting a script into a full Swift Package Manager project. This tool instead reads dependency specifications written beside import statements and automatically fetches the required packages. It builds and caches an internal package before executing the script, rebuilding only when necessary. Dependencies can come from GitHub, arbitrary Git URLs, SSH locations, local directories, specific versions, ranges, or commits. Scripts can run through swift sh or directly through an appropriate shebang. Additional commands can open scripts as Xcode projects or convert growing scripts into standard Swift packages.

Features

  • Third-party dependencies in standalone Swift scripts
  • Dependency declarations directly beside import statements
  • GitHub, Git, SSH, and local package support
  • Semantic version and commit-specific dependency selection
  • Cached compilation for faster repeated execution
  • Xcode editing and Swift package conversion tools

Project Samples

Project Activity

See All Activity >

Follow swift-sh

swift-sh Web Site

Other Useful Business Software
Paessler - Monitor Your Whole Network in Minutes Icon
Paessler - Monitor Your Whole Network in Minutes

Auto-discovery finds your devices and deploys pre-configured sensors instantly. No project plan required, just visibility from day one.

Waiting weeks for a monitoring rollout isn't an option when infrastructure doesn't stop running. PRTG's auto-discovery scans your network and suggests from over 200 pre-configured sensor types, so you're watching servers, applications and devices within minutes, not after a multi-week deployment. Enterprise-strength monitoring, without the enterprise complexity. Start your free trial today.
Start Free 30-Day Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of swift-sh!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Swift

Related Categories

Swift Software Development Software

Registered

2026-09-03