Native Platform

Running a Viash component on a native platform means that the script will be executed in your current environment.

Any dependencies are assumed to have been installed by the user, so the native platform is meant for developers (who know what they’re doing) or for simple bash scripts (which have no extra dependencies).

Example

An example of a native platform yaml can be found below, each part of which is explained in more depth in the following sections.

platforms:
  - type: native
    id: native_platform

id [string]

As with all platforms, you can give a platform a different name. By specifying id: foo, you can target this platform (only) by specifying -p foo in any of the Viash commands.

Example:

id: foo