Optionalparams: ModalClientParamsReadonlyappsReadonlycloudReadonlyclsReadonlyfunctionReadonlyfunctionsReadonlyimagesReadonlyloggerReadonlyprofileReadonlyproxiesReadonlyqueuesReadonlysandboxesReadonlysecretsReadonlyvolumesOptionalenvironment: stringReturns the image builder version by querying the server where the local profile takes precedence.
The image builder version is an environment-scoped server setting, so pass the environment the image will be built in (e.g. an App's environment) to fetch the correct version. When omitted, the profile's default environment is used.
OptionalenvironmentName: string
The main client for interacting with Modal's cloud infrastructure.
ModalClient provides access to all Modal services through service properties. Create a client instance and use its service properties to manage Apps, Functions, * Sandboxes, and other Modal resources.
Example