Marco Wang
Marco Wang

Reputation: 11

How I create an Erlang app using rebar3 in shell?

We can create application using rebar as below:

rebar create-app appid=demo

But when execute rebar3 create-app appid=demoin shell, an exception occurred as below:

➜  transaction_publish_service git:(master) rebar3 create-app appid=mqttcli  
===> Command 'create-app' not found

So, if create-app was removed in rebar3, which command can replace it?

Upvotes: 1

Views: 209

Answers (1)

Wojtek Surowka
Wojtek Surowka

Reputation: 20993

The equivalent in rebar3 is new. Use

rebar3 new app demo

More information about this can be found in documentation.

Upvotes: 1

Related Questions