Skip to content

device-deployment-cli

The deploy-to-device command: reads its arguments, runs deployToDevice and turns the result into an exit code. A plugin runs it after npm run build to try the build on a phone.

Function Description
parseDeployToDeviceArguments Parses the command line of deploy-to-device: --vault=<device path> (or the OBSIDIAN_DEVICE_VAULT_PATH_ENV_NAME environment variable), and the optional --device=<id>, --dist=<folder>, --app-id=<id> and --no-restart.
runDeployToDeviceCli Runs deploy-to-device.
Variable Description
OBSIDIAN_DEVICE_VAULT_PATH_ENV_NAME The environment variable read when --vault is not given.