Stream: ideas

Topic: ✔ "roc new" subcommand


view this post on Zulip Hannes (Jul 10 2023 at 14:16):

Are there any plans to add a subcommand to quickly start a new Roc project? Something like cargo new.

Would probably want to be able to create a new package and specify the name, defaulting to the name of the directory if none is given which is what cargo new does.

roc new package [--name=my-package] .

And also create an app with a given platform:

roc new app [--name=my-app] [--platform=https://...] .

view this post on Zulip Hannes (Jul 10 2023 at 14:18):

Would probably also want to borrow a bunch of cargo new's arguments like --vcs=git or --git for initialising a git repo, etc.

view this post on Zulip Anton (Jul 10 2023 at 14:49):

Richard proposed roc init last year: #3139

view this post on Zulip Hannes (Jul 10 2023 at 15:06):

Ah, thank you! It felt like something that would've been mentioned somewhere :)

view this post on Zulip Notification Bot (Jul 10 2023 at 15:06):

Hannes has marked this topic as resolved.


Last updated: Jun 16 2026 at 16:19 UTC