Create a new project using the Swift Package Manager

> mkdir helloworld
> cd helloworld
> swift package init --type executable


Creating executable package: hello
Creating Package.swift
Creating README.md
Creating .gitignore
Creating Sources/
Creating Sources/hello/main.swift
Creating Tests/


Run it

> swift run

Compile Swift Module 'hello' (1 sources)
Linking ./.build/x86_64-apple-macosx10.10/debug/hello
Hello, world!