Run a SwiftPM command-line project - Swift | Zoonk
Run a SwiftPM command-line project
Start an executable project with `swift package init --type executable`, locate the generated source file, and run it with `swift run`. Use Swift Package Manager as the repeatable command-line workflow for programs that grow beyond one file.