### Install Dagger TypeScript SDK Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Install the TypeScript SDK module from your workspace root. ```sh dagger install github.com/dagger/typescript-sdk ``` -------------------------------- ### Create a new Dagger TypeScript module with Deno runtime Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Create a new TypeScript SDK module using the Deno runtime. ```sh dagger call typescript-sdk init --name my-module --runtime DENO ``` -------------------------------- ### Create a new Dagger TypeScript module with Bun runtime Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Create a new TypeScript SDK module using the Bun runtime. ```sh dagger call typescript-sdk init --name my-module --runtime BUN ``` -------------------------------- ### Configure module creation with package manager and base image Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Configure a new TypeScript SDK module with a specific package manager and base image. This is only valid for the Node runtime. ```sh dagger call typescript-sdk init --name my-module \ --package-manager pnpm@8.15.4 \ --base-image node:23.2.0-alpine ``` -------------------------------- ### Create a new Dagger TypeScript module at a specific path Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Create a new TypeScript SDK module in a custom directory. ```sh dagger call typescript-sdk init --name my-module --path some/dir/my-module ``` -------------------------------- ### Create a new Dagger TypeScript module Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Create a new TypeScript SDK module in the default location. ```sh dagger call typescript-sdk init --name my-module ``` -------------------------------- ### Generate TypeScript SDK Files for All Modules Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Generate SDK files for all TypeScript SDK modules in the workspace. Skips modules with a .dagger-typescript-sdk-skip-generate marker. ```sh dagger call typescript-sdk generate-all ``` -------------------------------- ### Read TypeScript SDK Module Configuration Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Use these commands to read the current package manager and base image configuration for a specific module. ```sh dagger call typescript-sdk mod --path my-module config package-manager dagger call typescript-sdk mod --path my-module config base-image ``` -------------------------------- ### List TypeScript SDK Module Dependencies Source: https://github.com/dagger/typescript-sdk/blob/main/README.md List all current dependencies for a specified module. Remember to run 'mod ... generate' after dependency management operations. ```sh dagger call typescript-sdk mod --path my-module deps list ``` -------------------------------- ### Set TypeScript SDK Module Base Image Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Configure the base image for a module. This command writes to deno.json for Deno modules and package.json otherwise. ```sh dagger call typescript-sdk mod --path my-module \ config set --base-image node:23.2.0-alpine ``` -------------------------------- ### Discover All Modules in Workspace Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Lists all TypeScript SDK modules found within the current workspace. ```sh dagger call typescript-sdk modules path ``` -------------------------------- ### Pin to Latest Engine Version Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Pins the Dagger engine to the latest available version. ```sh dagger call typescript-sdk mod --path my-module engine require-latest ``` -------------------------------- ### Generate TypeScript SDK Files for a Single Module Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Generate SDK files for a specific module located at the provided path. Run 'mod ... generate' after dependency changes. ```sh dagger call typescript-sdk mod --path my-module generate ``` -------------------------------- ### Set TypeScript SDK Module Package Manager and Base Image Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Configure both the package manager and base image for a module in a single call. Ensure compatibility as package manager settings are runtime-specific. ```sh dagger call typescript-sdk mod --path my-module \ config set --package-manager pnpm@8.15.4 --base-image node:23.2.0-alpine ``` -------------------------------- ### Pin to Current Engine Version Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Pins the Dagger engine to the version currently being run. ```sh dagger call typescript-sdk mod --path my-module engine require-current ``` -------------------------------- ### Read Pinned Engine Version Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Reads the Dagger engine version pinned in the dagger.json file for a specific module. ```sh dagger call typescript-sdk mod --path my-module engine required ``` -------------------------------- ### Pin to Specific Engine Version Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Pins the Dagger engine to a specific version for a module. ```sh dagger call typescript-sdk mod --path my-module engine require --version 0.20.8 ``` -------------------------------- ### Set TypeScript SDK Module Package Manager Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Configure the package manager for a module. This command writes to package.json for most modules and is not supported for Bun or Deno runtimes. ```sh dagger call typescript-sdk mod --path my-module \ config set --package-manager pnpm@8.15.4 ``` -------------------------------- ### Add Remote Dependency with Custom Local Name Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Add a remote dependency to a module and assign it a custom local alias. Run 'mod ... generate' afterwards to update SDK files. ```sh dagger call typescript-sdk mod --path my-module \ deps add --source github.com/some/module --name alias ``` -------------------------------- ### Skip Module Generation Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Creates an empty file to exclude a directory tree from bulk generation by the TypeScript SDK. ```sh touch some/fixture/.dagger-typescript-sdk-skip-generate ``` -------------------------------- ### Update All TypeScript SDK Module Dependencies Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Update all remote dependencies for a module to their latest versions. Run 'mod ... generate' to reflect these changes in the SDK files. ```sh dagger call typescript-sdk mod --path my-module deps update ``` -------------------------------- ### Add Remote Dependency to TypeScript SDK Module Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Add a new remote dependency to a module. After adding, run 'mod ... generate' to refresh the generated SDK files. ```sh dagger call typescript-sdk mod --path my-module \ deps add --source github.com/some/module ``` -------------------------------- ### Unset TypeScript SDK Module Base Image Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Remove the base image configuration for a module. This is a separate command from setting the configuration. ```sh dagger call typescript-sdk mod --path my-module config unset-base-image ``` -------------------------------- ### Remove TypeScript SDK Module Dependency by Name Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Remove a dependency from a module using its alias. Ensure generated SDK files are refreshed with 'mod ... generate' after removal. ```sh dagger call typescript-sdk mod --path my-module deps remove --name alias ``` -------------------------------- ### Unset TypeScript SDK Module Package Manager Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Remove the package manager configuration for a module. This is a separate command from setting the configuration. ```sh dagger call typescript-sdk mod --path my-module config unset-package-manager ``` -------------------------------- ### Update Specific TypeScript SDK Module Dependency Source: https://github.com/dagger/typescript-sdk/blob/main/README.md Update a single, named remote dependency for a module. Execute 'mod ... generate' subsequently to update the generated SDK files. ```sh dagger call typescript-sdk mod --path my-module deps update --name some-dep ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.