March 27th, 2026

New

Run commands from Git repos with build scripts (Makefile, Go, Python, Node, and more) on Mac & Windows

You can now connect a Git repository and run commands from it directly on Mac and Windows devices.

This feature works with any build or run script in your repo, including:

  • Go (go run, go build, custom Go scripts)

  • Python (python / pip-based scripts)

  • Node.js (npm, pnpm, yarn scripts)

  • Other custom shell or batch scripts

Point Swif to the repo and the command you want to run, and we’ll take care of executing it on the selected devices. This gives you a flexible way to reuse your existing automation—whether that’s a Makefile target, a Go tool, a Python script, or a Node CLI—without changing how your repo is structured.


What’s new

1. New execution types in Command creation

When you go to Commands → Create new command, Step 1 is now organized into:

  • Basic Information

  • Execution Type

  • Execution Settings

Under Execution Type, you’ll now see:

  1. Run by Command Script (existing behavior, unchanged)

    • Same custom script flow you used before.

    • Now includes a Run Security Risk Analysis action in the UI.

  2. Run by File (new)

    • Paste or upload a single script file (e.g. .py, .js, .go, .sh) and run it directly.

    • Filename and File content are required; you can’t proceed without both.

    • For this mode:

      • Run Schedule, Command status, and Webhook configuration are hidden to keep it focused on ad‑hoc runs.

    • Includes an inline Security Risk Analysis notice.

    • Review step shows a dedicated Run by File summary.

  3. Run by Git Repo (new)

    • Connect a Git repository and run commands via a build script target (Makefile, Go, Python, Node, and more).

    • You configure:

      • Repository URL

      • Branch

      • Path: If your build script is not at the repo root, specify the path (e.g. ./scripts/deploy).

      • Repo Name

      • Build Script

    • Repo URL and Build script are required fields

    • For this mode:

      • Run Schedule, Command status, and Webhook configuration are hidden.

    • The review step clearly summarizes:

      • Repo URL

      • Branch

      • Build script

      • Any platform‑specific execution settings

Full user help is available here:
Run Commands by Script, OSQuery, File, or Git Repo | Help Center | Swif.ai


2. Cross‑platform support (Mac, Windows, Linux)

By Git repo + By File commands are now supported from the Web App for:

  • Mac

  • Windows

  • Linux

For all three platforms:

  • You can create a command that:

    • Uses a Git repo as the script source.

    • Uses the build script as defined in the underlying backend work.

  • The UX and field set are consistent across OSes, with platform‑specific nuances (paths, shells, prerequisites) reflected in helper text or copy where relevant.

  • A prior issue where template‑based commands did not correctly create Mac variants has been fixed; templates that show all three OS configurations now create commands for Mac, Windows, and Linux as expected.


3. Execution, status, and error handling

When you execute a Git‑backed command from the Web App:

  • Swif dispatches the run via the build script for the selected platform(s).

  • The existing command/job detail view shows:

    • Normal status progression (queued → running → succeeded / failed)

    • Logs and output from the run

  • Git / build script specific errors (e.g. bad repo URL, missing branch, or build script not found) are surfaced as clear, user‑friendly messages, rather than opaque generic failures.


Learn more at Run Commands by Script, OSQuery, File, or Git Repo.