vapor
Server-side Swift web framework toolbox
TLDR
SYNOPSIS
vapor [new] [options] [name]
DESCRIPTION
vapor is the command-line toolbox for the Vapor web framework, a server-side Swift HTTP framework. The toolbox's primary purpose is creating new Vapor projects from templates. The new command is the default subcommand and can be omitted.Projects are created from templates that include routing, middleware, and optionally Fluent ORM for database operations. The toolbox supports dynamic project generation through manifest files (YAML or JSON) that define variables and conditional file inclusion based on user responses.Once a project is created, you use Swift Package Manager directly (`swift build`, `swift run`) to build and run the application.
PARAMETERS
-n
Automatically answer "no" to all interactive questions.--output path
Specify a custom folder location for the new project.--template url
Use a custom template from a Git repository URL.--branch name
Specify a different Git branch for the template (default: main).--no-git
Skip Git repository initialization.--no-commit
Initialize Git but skip the initial commit.--help
Display help information.
CAVEATS
Requires Swift toolchain and Xcode Command Line Tools on macOS. Linux requires Swift installation. The toolbox requires macOS 15.0+ or a Linux distribution supported by Swift 6.1+. Database drivers (PostgreSQL, MySQL, SQLite) are added as Swift package dependencies.
HISTORY
Vapor was created by Tanner Nelson in 2016 as one of the first major server-side Swift frameworks. It quickly became the most popular Swift web framework. Vapor 4, released in 2020, brought full async/await support and improved performance. The framework is maintained by the Vapor community and used in production by companies worldwide.
