# Manage Transformations Using Rudder CLI


> Define, validate, test, and apply transformations and transformation libraries as YAML configurations using Rudder CLI.



You can leverage [Rudder CLI](https://www.rudderstack.com/docs/rudder-cli/) to manage [Transformations](https://www.rudderstack.com/docs/transformations/overview/) and [Transformation Libraries](https://www.rudderstack.com/docs/transformations/libraries/) as code using a YAML-driven workflow. You can keep transformation code and test definitions in your repository, validate changes locally, and apply updates to your workspace in a controlled way.

## Key features

With Rudder CLI's transformations management feature, you get the following capabilities:

### Declarative YAML configuration

- Define both `transformation` and `transformation-library` resources in YAML files
- Write transformation code inline or reference external code files
- Include local test suites alongside your transformation definitions
- Validate configurations locally before deployment

### Local testing and safer deployment workflow

- Test individual, all, or only modified transformations
- Compare actual output against expected results
- Preview changes with a dry run before applying them to your workspace

### Git integration and CI/CD support

- Keep transformation specs, code, and test fixtures version-controlled in Git
- Reuse the same commands locally and in CI pipelines
- Use a review-first **Validate** > **Test** > **Apply** workflow

## Who can use this feature?

The CLI-based transformations workflow is useful to:

- Manage transformations and libraries programmatically with consistent standards
- Test transformation behavior before publishing updates
- Keep transformation code and tests in the same repository and review process
- Automate validation and deployment in CI/CD

## Get started

- See the [End-to-End Walkthrough: Transformations Management with Rudder CLI](https://www.rudderstack.com/docs/rudder-cli/transformations-walkthrough/) to create, validate, test, and apply transformations using Rudder CLI
- See the [Transformations YAML Reference](https://www.rudderstack.com/docs/rudder-cli/yaml-transformations/) for complete YAML schemas, constraints, and examples
- Link a transformation to a destination in the [Destination YAML Reference](https://www.rudderstack.com/docs/rudder-cli/yaml-destinations/)
- Automate with [GitHub Actions](https://www.rudderstack.com/docs/rudder-cli/github-actions/transformations/)
- Automate with [GitLab CI/CD](https://www.rudderstack.com/docs/rudder-cli/gitlab-ci-cd/transformations/)

<br />
