> ## Documentation Index
> Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TrueFoundry Client

> The main TrueFoundry client that provides unified access to all SDK sub-clients and operations.

The main client for TrueFoundry SDK operations. This client provides access to all SDK functionality through organized sub-clients.

## Client Methods

<Accordion title="apply">
  Applies a given manifest to create or update resources of specific types, such as provider-account, cluster, workspace, or ml-repo.

  #### Parameters

  <ParamField body="manifest" type="TrueFoundryApplyRequestManifest" required>
    [🔗 TrueFoundryApplyRequestManifest](/docs/truefoundry_sdk/types#truefoundryapplyrequestmanifest)

    manifest of the resource to be created or updated
  </ParamField>

  <ParamField body="dry_run" type="typing.Optional[bool]">
    Dry run the apply operation without actually applying
  </ParamField>

  #### Returns

  <ResponseField name="TrueFoundryApplyResponse" type="TrueFoundryApplyResponse">
    [🔗 TrueFoundryApplyResponse](/docs/truefoundry_sdk/types#truefoundryapplyresponse)

    The resource has been successfully created or updated.
  </ResponseField>

  #### Usage

  ```python lines theme={"dark"}
  from truefoundry import TrueFoundry

  client = TrueFoundry(
      api_key="YOUR_API_KEY",
      base_url="https://yourhost.com/path/to/api",
  )

  client.apply(
      manifest={"key": "value"},
      dry_run=False,
  )
  ```
</Accordion>

<Accordion title="delete">
  Deletes resources of specific types, such as provider-account, cluster, workspace, or application.

  #### Parameters

  <ParamField body="manifest" type="TrueFoundryDeleteRequestManifest" required>
    [🔗 TrueFoundryDeleteRequestManifest](/docs/truefoundry_sdk/types#truefoundrydeleterequestmanifest)

    manifest of the resource to be deleted
  </ParamField>

  #### Returns

  <ResponseField name="None" type="None" />

  #### Usage

  ```python lines theme={"dark"}
  from truefoundry import TrueFoundry

  client = TrueFoundry(
      api_key="YOUR_API_KEY",
      base_url="https://yourhost.com/path/to/api",
  )

  client.delete(
      manifest={"key": "value"},
  )
  ```
</Accordion>
