Swift CLI

Open-source Swift projects categorized as CLI

Top 23 Swift CLI Projects

  1. XcodeGen

    A Swift command line tool for generating your Xcode project

    Project mention: Agentic Editing in Zed | news.ycombinator.com | 2025-05-07

    (not the one you asked, but can chime in with some info)

    This was a long time ago, but the way I did it was to use XcodeGen (1) and a simple Makefile. I have an example repo here (2) but it was before Swift Package Manager (using Carthage instead). If I remember correctly XcodeGen has support for Swift Package Manager now.

    On top of that I was coding in VS Code at the time, and just ran `make run` in the terminal pane when I wanted to run the app.

    Now, with SwiftUI, I'm not sure how it would be to not use Xcode. But personally, I've never really vibed with Xcode, and very much prefer using Zed...

    1: https://github.com/yonaskolb/XcodeGen

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Swift Argument Parser

    Straightforward, type-safe argument parsing for Swift

    Project mention: A Vision for WebAssembly Support in Swift | news.ycombinator.com | 2025-04-05

    Ha, nice! I've used the Swift shebang before, but honestly once you have something that works as a "script," it's so easy to convert it to a real command line utility via Swift Argument Parser [0] that I usually spend the 5 minutes to wrap it up.

      [0]: https://github.com/apple/swift-argument-parser

  4. LicensePlist

    A license list generator of all your dependencies for iOS applications

  5. multi

    Create custom, lightweight macOS apps from websites

  6. Swiftline

    Swiftline is a set of tools to help you create command line applications.

  7. SwiftCLI

    A powerful framework for developing CLIs in Swift

  8. vmcli

    A set of utilities (vmcli + vmctl) for macOS Virtualization.framework

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. reminders-cli

    A simple CLI for interacting with macOS reminders

    Project mention: Reminders-CLI: A simple CLI for interacting with macOS reminders | news.ycombinator.com | 2024-10-30
  11. dark-mode

    Control the macOS dark mode from the command-line

  12. LibTerm

    iOS sandboxed terminal with Python, Lua and Clang

  13. macos-wallpaper

    Manage the desktop wallpaper on macOS

  14. SwagGen

    OpenAPI/Swagger 3.0 Parser and Swift code generator

  15. SwiftPlantUML

    A command-line tool and Swift Package for generating class diagrams powered by PlantUML

  16. Surmagic

    🚀 Create XCFramework with ease! Surmagic is a command-line tool to create XCFramework for multiple platforms at one shot! You don't need to waste your time with command-line scripts when you want to create an XCFramework! Surmagic adds an elegant layer between you and the compiler, for your comfort. You can use Surmagic with your current CI/CD pipeline, or as a standalone tool in your toolbox. The better way to deal with XCFrameworks for iOS, iPadOS, Mac Catalyst, tvOS, macOS, and watchOS.

  17. airdrop-cli

    A macOS CLI for AirDrop written in Swift

  18. ProgressLine

    ⏳Track commands progress in a compact one-line format

    Project mention: Show HN: ProgressLine – Track commands progress in a compact one-line format | news.ycombinator.com | 2024-07-18
  19. appstoreconnect-cli

    An easy to use command-line tool for interacting with the Apple AppStore Connect API

  20. swift-mod

    A tool for Swift code modification intermediating between code generation and formatting.

  21. Sake

    🍶 Swift-based utility for managing project commands, inspired by Make. (by kattouf)

    Project mention: Streamline Your Project Workflow Using Swift with Sake: A Practical Guide | dev.to | 2024-10-14

    For more information, check out the official Sake documentation and explore commands applied to Sake project itself.

  22. loco

    A linter for Swift Localizations (by konrad1977)

  23. airport-bssid

    command line tool to connect to specific bssid for macOS

  24. Crayon

    ✏️Expressive styling on terminal string. (chalk for swift) (by luoxiu)

  25. MarkersExtractor

    Extract Markers from Final Cut Pro FCPXML

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Swift CLI discussion

Log in or Post with

Swift CLI related posts

  • Reminders-CLI: A simple CLI for interacting with macOS reminders

    1 project | news.ycombinator.com | 30 Oct 2024
  • Anyones macbook also run hotter than their gaming laptop. What temp does the cpu start to throttle? Slow speeds

    3 projects | /r/macgaming | 24 Jun 2023
  • Idea for small project? (without touching any UI)

    2 projects | /r/swift | 31 Jan 2023
  • Options array in Swift?

    1 project | /r/swift | 21 Nov 2022
  • The saddest “just ship it” story ever

    4 projects | news.ycombinator.com | 12 May 2022
  • Discord full release is FINALLY optimized for Apple Silicon!

    2 projects | /r/macapps | 22 Mar 2022
  • SIM Card Based Mobile Authentication with iOS

    3 projects | dev.to | 8 Nov 2021
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 14 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source CLI projects in Swift? This list will help you:

# Project Stars
1 XcodeGen 7,338
2 Swift Argument Parser 3,462
3 LicensePlist 2,465
4 multi 1,346
5 Swiftline 1,201
6 SwiftCLI 869
7 vmcli 827
8 reminders-cli 762
9 dark-mode 666
10 LibTerm 658
11 macos-wallpaper 657
12 SwagGen 628
13 SwiftPlantUML 610
14 Surmagic 313
15 airdrop-cli 216
16 ProgressLine 191
17 appstoreconnect-cli 177
18 swift-mod 108
19 Sake 88
20 loco 73
21 airport-bssid 64
22 Crayon 59
23 MarkersExtractor 42

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Swift is
the 15th most popular programming language
based on number of references?