cloudflared
    Preparing search index...

    Function install

    • Install cloudflared to the given path. Pass a version string (or omit it) to always download. Pass options to install only when missing, below the minimum, or to periodically reinstall an updated version. Optional refresh failures keep the installed binary; required installations throw.

      Parameters

      • to: string

        The path to the binary to install.

      • version: string | InstallOptions = CLOUDFLARED_VERSION

        A version to download, or options for conditional installation.

      Returns Promise<string>

      The path to the installed binary.