<div dir="ltr">There has been some progress towards better documentation, but there is still a lot to be done. Here are some current references (which might need updates..)<div><a href="https://github.com/apple/swift-package-manager/blob/master/Documentation/Usage.md#build-an-executable">https://github.com/apple/swift-package-manager/blob/master/Documentation/Usage.md#build-an-executable</a></div><div><a href="https://swift.org/package-manager/#example-usage">https://swift.org/package-manager/#example-usage</a></div><div><a href="https://swift.org/package-manager/">https://swift.org/package-manager/</a></div><div><br></div><div>Basically SwiftPM has three commands: swift build, swift package and swift test</div><div>You can see available options on each using --help option.</div><div><br></div><div>$ swift package --help<br></div><div><br></div><div>To create an executable:</div><div><br></div><div>$ mkdir myPackage &amp;&amp; cd myPackage</div><div>$ swift package init --type executable</div><div>$ swift build</div><div>$ .build/debug/myPackage</div><div><br></div><div>some JIRAs tracking this: </div><div><a href="https://bugs.swift.org/browse/SR-2304">https://bugs.swift.org/browse/SR-2304</a></div><div><a href="https://bugs.swift.org/browse/SR-2179">https://bugs.swift.org/browse/SR-2179</a><br></div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 13, 2016 at 2:39 PM, Adrian Brink via swift-users <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><div><br></div><div>so I would like to write a small CLI in Swift and use the Swift Package Manager.</div><div><br></div><div>However, I have a hard time finding resources that explain, which versions of Swift support it exactly, what the init command is and where to go from there. </div><div><br></div><div>All I have found are these two resources:</div><div><a href="https://github.com/apple/swift-package-manager" target="_blank">https://github.com/apple/<wbr>swift-package-manager</a><br></div><div><a href="https://github.com/apple/swift-package-manager/tree/master/Documentation" target="_blank">https://github.com/apple/<wbr>swift-package-manager/tree/<wbr>master/Documentation</a><br></div><div><br></div><div>Is there something like this:</div><div><a href="https://docs.npmjs.com/" target="_blank">https://docs.npmjs.com/</a><br></div><div><a href="https://doc.rust-lang.org/book/getting-started.html" target="_blank">https://doc.rust-lang.org/<wbr>book/getting-started.html</a><br></div><div><br></div><div>I think this is crucial if we want to get new people to try out the open source version of Swift because these tutorials are what people have come to expect when approaching a new language.</div><div><br></div><div>If there is, I would appreciate it if we could share it and if there isn&#39;t it would be nice if we, as a community, could create something like this, or at least one README page that walks through the initial flow. </div><div><br></div><div>If someone is interested let me know and then we can try and make it work.</div><br><u></u>Sent from <a href="https://link.nylas.com/link/cpvvu89b6khaohz5hhf2xh3dw/local-d2b7550c-221a/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&amp;r=c3dpZnQtdXNlcnNAc3dpZnQub3Jn" target="_blank">Nylas N1</a>, the extensible, open source mail client.<u></u></div><img width="0" height="0" style="border:0;width:0;min-height:0" src="https://link.nylas.com/open/cpvvu89b6khaohz5hhf2xh3dw/local-d2b7550c-221a?r=c3dpZnQtdXNlcnNAc3dpZnQub3Jn"><br>______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ankit<br><br></div>
</div>