grisp_new provides the standalone mix grisp.new task for creating
GRiSP-ready Elixir projects. Its archive has no runtime dependencies and is
intended to be installed globally.
Install the latest release from Hex:
mix archive.install hex grisp_newInstall a specific release with:
mix archive.install hex grisp_new 1.0.0Create a supervised Mix application interactively:
mix grisp.newFor non-interactive use:
mix grisp.new --no-interactive --name robot \
--ssid mywifi --psk mysecretImportant options are --name, --otp-version, --jit true|false, --dest,
--wifi, --ssid, --psk, --grisp-io, --grisp-io-linking TOKEN,
--epmd, and --cookie.
Ethernet is always configured. Wi-Fi is enabled by --wifi or implicitly when
an SSID or PSK is supplied. --grisp-io-linking TOKEN implicitly enables
GRiSP.io. In non-interactive mode, optional features are disabled unless their
options are supplied.
The generated project depends on grisp and mix_grisp. Run mix deps.get
inside it before using the project-local build, deploy, firmware, and package
tasks.
If the target directory exists, interactive mode asks for confirmation and creates only missing files. Non-interactive mode refuses to modify an existing directory.
Build and install an archive from this checkout:
MIX_ENV=prod mix do archive.build + archive.installRun the test suite with:
mix test