rfw-cli
is the official command-line interface (CLI) tool for the rfw framework. It allows you to create, build, and run rfw projects from the command line.
Ensure you have Go installed on your machine. Then, install rfw-cli
with the following command:
go install github.com/rfwlab/rfw-cli@latest
To create a new rfw project, run the following command:
rfw-cli init github.com/username/project-name
To start the rfw server, run the following command:
rfw-cli dev
Two flags are available for the dev
command:
--port XXXX
: specify the port number for the server (default is 8080, replaceXXXX
with the desired port number)--host
: to expose the server to the network
For example
rfw-cli dev --port 3000 --host