# Save a transformation

The method you use to save a transformation depends on if you are using PDI locally on your machine or if you are connected to a repository. If you are connected to a repository, you are remotely saving your file on the Pentaho Server. Optionally, you can save a transformation on a Virtual File System (VFS) if you are not connected to the Pentaho Repository.

## On your local machine

Follow these instructions to save a transformation on your local machine.

1. In the PDI client, perform one of the following actions:
   * Select **File** > **Save** or **File** > **Save as**.
   * Click the **Save current file** icon in the toolbar.
   * Hold down the CTRL S keys.\
     The Save As window opens.
2. Specify the transformation's name in the window and select the location.

   By default, the folder from where the last file was accessed is opened.

   **Note:** The file types allowed are .ktr or.kjb.
3. Click **Save**.

   The transformation is saved.

The window closes when your transformation is saved.

## In the Pentaho Repository

Follow these instructions to save a transformation to the Pentaho Repository.

1. Verify that you are [connected to a repository](/pdia-data-integration/redirects/use-a-pentaho-repository-in-pdi.md), which establishes remote access to the Pentaho Server.
2. In the PDI client, perform one of the following actions:

   * Select **File** > **Save** or **File** > **Save as**.
   * Click the **Save current file** icon in the toolbar.
   * Hold down the CTRLS keys.\
     The Save As window opens. By default, the folder from where the last file was accessed is opened.

   **Note:** The file types allowed are .ktr or.kjb.
3. Navigate to the repository folder where you want to save your transformation.
4. Specify the transformation's name in the **File name** field.
5. Click **Save**.

The window closes when your transformation is saved. If the transformation already exists, an overwrite warning message appears. Click **OK** to overwrite the existing transformation.

## On Virtual File Systems

From the menu bar in the PDI client, select **File** > **Open** to save a PDI transformation on a Virtual File System (VFS). See [Connecting to Virtual File Systems](/pdia-data-integration/extracting-data-into-pdi/virtual-file-system-browser.md) for details.

\\


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/archived-merged-pages/transforming-data-with-pdi-archive/work-with-transformations-cp/save-a-transformation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
