← Back to index
class DaggerCLI

Constructors

🔗
DaggerCLI()

The constructor initializes the config, logger, and env properties of the class.

Methods

🔗
detect(): Promise<void>

The detect function checks if the Dagger CLI tool is installed and if it is the correct version, and installs it if necessary.

🔗
install(): Promise<void>

The install function downloads and installs a CLI installer file, runs the installer, and handles success or failure.

🔗
run(cmd: string, silent?: boolean)
🔗
version(): Promise<string>

The function version() checks the version of the Dagger CLI tool and returns the version number.