The `swift package` command should also be exposed as a binary named `spm`

Number:rdar://45167948 Date Originated:11-Oct-2018 01:50 AM
Status:Closed Resolved:No
Product:macOS + SDK Product Version:4.2
Classification:Feature (New) Reproducible:Always
Having to type `$ swift package` every type I interact with Swift Package Manager gets tiring fast. Would be nice if it was also exposed as `$ spm`. All other programming languages have a short command for their package manager. For example, Node.js has `$ npm`. Ruby has `$ gem`. Python has `$ pip`.

Steps to Reproduce:

Expected Results:
I expected to be able to type, for example, `$ spm init` to initialize a new package.

Actual Results:
I have to type `$ swift package init`.




Apple Developer Relations

Engineering has provided the following information regarding this issue:

"spm" was indeed considered but ultimately rejected. The discussion can be found in the alternatives considered of this proposal:

By sindresorhus at Oct. 12, 2018, 6:10 p.m. (reply...)

Swift issue

By sindresorhus at Oct. 10, 2018, 6:54 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!