Skip to content
Axel Ancona Esselmann edited this page Jun 12, 2024 · 28 revisions

CLSPM

What is CLSPM?

CLSPM is a command-line application for managing Swift Package Manager dependencies for Xcode projects.

Why does CLSPM exist?

As of this writing there is no way to manage SPM packages for Xcode projects through a command line interface. CLSPM grew out of a desire to be able to quickly toggle between local and remote packages, a need to quickly spin up projects without having to manually add multiple packages, and a frustration with the tedium of working with Xcode projects that build multiple targets that include different SPM packages.

Expand for additional frustrations

When toggling between remote and local packages:

Quick-Start

I have:

Commands

init

The init command generates an spmfile inside the project directory. spmfiles determine which packages get added to the project when the install command is run.

install

The install command reads the project's spmfile and modifies the project's xcodeproj.

add

The add command adds new dependencies to the spmfile and updates the project's xcodeproj.

reset

The reset command can be used to reset config, dependencies and spmfile files.

Example Workflows

Documentation