Skip to content

DeployToDeviceParams

Parameters for deployToDevice.

Import:

import type { DeployToDeviceParams } from '@mnaoumov/obsidian-dev-toolkit/device-deployment';

Signature:

export interface DeployToDeviceParams

Properties

PropertyTypeDescription
appId?stringThe Android application id of Obsidian. Defaults to OBSIDIAN_MOBILE_APP_ID.
deviceId?stringThe device to deploy to, as adb devices lists it. Defaults to the one device attached, and fails when there is none or more than one.
deviceVaultPathstringThe vault folder on the device, e.g. /sdcard/Documents/My Vault. Its folder name is the vault name Obsidian opens.
distFolder?stringThe folder holding the build to deploy, relative to the project root. Defaults to dist/build.
shouldRestart?booleanWhether to restart Obsidian on the vault once the build is pushed. Defaults to true. Without the restart the pushed build runs only after Obsidian is restarted by hand, and a new plugin is not enabled.

Links to this page: