Swift CLI

Open-source Swift projects categorized as CLI

Top 22 Swift CLI Projects

  • XcodeGen

    A Swift command line tool for generating your Xcode project

    Project mention: Would creating a new Xcode project cause significant merge conflicts? | /r/iOSProgramming | 2022-10-06

    Worth noting if project file changes would be pretty common in the development flow then maybe using a regen tool would be useful to prevent major conflicts, I’d recommend https://github.com/yonaskolb/XcodeGen

  • Swift Argument Parser

    Straightforward, type-safe argument parsing for Swift

    Project mention: Idea for small project? (without touching any UI) | /r/swift | 2023-01-31

    Command-line compiled apps, perhaps with swift-argument-parser

  • Appwrite

    Appwrite - The open-source backend cloud platform. The open-source backend cloud platform for developing Web, Mobile, and Flutter applications. You can set up your backend faster with real-time APIs for authentication, databases, file storage, cloud functions, and much more!

  • LicensePlist

    A license list generator of all your dependencies for iOS applications

  • Swiftline

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

  • multi

    Create a custom, lightweight macOS app from a group of websites

    Project mention: Looking for a Free All in One Messenger app | /r/macapps | 2023-01-25

    On the GitHub page (https://github.com/kofigumbs/multi) there's an example for tabs. I didn't use this since I want my sites separated, hopefully it does what you want. Search for that section with "fancier example". Tried pasting it here but it looks like ass.

  • SwiftCLI

    A powerful framework for developing CLIs in Swift

  • vmcli

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

    Project mention: Apple Virtualization Framework | news.ycombinator.com | 2023-06-04

    This is higher-level than the Hypervisor framework; this Virtualization framework providers an entire VM with virtio peripherals including a display.

    https://github.com/lima-vm/lima can use Virtualization framework for creating VMs, there is also https://github.com/gyf304/vmcli as a very simple CLI utility for running VMs, though it's not very actively maintained.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • dark-mode

    Control the macOS dark mode from the command-line

    Project mention: How to schedule automatic dark/light theme based on a specific time? (not sunset) | /r/MacOS | 2023-08-16

    Solved: https://github.com/sindresorhus/dark-mode

  • SwagGen

    OpenAPI/Swagger 3.0 Parser and Swift code generator

  • macos-wallpaper

    Manage the desktop wallpaper on macOS

    Project mention: IlluminateMe: glow on video calls | /r/macapps | 2023-04-14

    Which in turn is invoking this: https://github.com/sindresorhus/macos-wallpaper

  • LibTerm

    iOS sandboxed terminal with Python, Lua and Clang

  • SwiftPlantUML

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

  • 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.

  • appstoreconnect-cli

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

  • airdrop-cli

    A macOS CLI for AirDrop written in Swift

  • swift-mod

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

  • loco

    A linter for Swift Localizations (by konrad1977)

  • Crayon

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

  • airport-bssid

    command line tool to connect to specific bssid for macOS

    Project mention: Need help using a command line tool | /r/MacOS | 2023-03-21
  • clip2imgur

    A simple macOS command line tool for uploading your screenshots from clipboard to Imgur

  • Prism

    Colored text for Swift command line tools. (by jordanbaird)

  • amd-cpu-data

    CLI for AMDRyzenCPUPowerManagement that reads wattage, temperature and frequencies on macOS

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

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). The latest post mention was on 2023-08-16.

Swift CLI related posts


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

Project Stars
1 XcodeGen 6,383
2 Swift Argument Parser 3,056
3 LicensePlist 2,276
4 Swiftline 1,189
5 multi 1,177
6 SwiftCLI 824
7 vmcli 803
8 dark-mode 637
9 SwagGen 615
10 macos-wallpaper 591
11 LibTerm 590
12 SwiftPlantUML 486
13 Surmagic 291
14 appstoreconnect-cli 162
15 airdrop-cli 106
16 swift-mod 100
17 loco 69
18 Crayon 59
19 airport-bssid 51
20 clip2imgur 15
21 Prism 13
22 amd-cpu-data 3
Free Global Payroll designed for tech teams
Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.