Swift 6 · Tooling

Run a script file

Run a Swift source file without building a project.

swift script.swift

Official Swift 6 documentation

More tooling commands

All tooling commands · Swift 6 cheatsheet

Was this page helpful?