Update
SDK & Tooling Updates
Stay up to date with the latest tooling from Moddable and supported device targets. As with the setup
command, the current dev environment (Mac or Linux) is the default selected target:
Interactive Input
By default, this command may prompt during the update process. To override this behavior, use the --noInteractive
flag.
If there is a environment variable called CI
set to true
, then this command will be non-interactive and automatically accept all prompts.
Tagged Release
The default behavior of this command for Moddable developer tooling pulls the latest release tooling and source code for the associated tagged branch. This provides a known-working state for the SDK and avoids needing to build the tooling on the local machine.
To override this behavior, use the --release
flag to select a tagged release version; this fetches the pre-compiled release assets and latest commit off that tag.
This will only work for the mac
, windows
, and linux
device options, which are the respective defaults for the operating system on which the command is run.
Target Branch
The default behavior of this command for Moddable developer tooling pulls the latest release tooling and source code for the associated tagged branch. This provides a known-working state for the SDK and avoids needing to build the tooling on the local machine.
To override this behavior, use the --branch
flag to select public
; this fetches the latest commit off that main branch and runs the build to generate the associated tools.
This will only work for the mac
, windows
, and linux
device options, which are the respective defaults for the operating system on which the command is run.
Device Updates
While the update
command provides the latest Moddable SDK for the dev environment, the --device
flag selects another platform target SDK to set up. It ensures the Moddable SDK has been installed first.
The --device
flag allows for selecting a different target platform:
There may be some platforms that are supported by the setup
command but not update
yet.