You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Metadelta is a custom Salesforce CLI plugin that offers eight complementary workflows:
10
+
Metadelta is a custom Salesforce CLI plugin that offers ten complementary workflows:
11
11
12
12
*`sf metadelta find` inspects a target org and reports metadata components modified by a specific user within a recent time window, optionally generating manifest files for deployment or Vlocity datapack migration. When it writes `package.xml`, the command stamps the file with the API version detected from the target org.
13
+
*`sf metadelta finddelta` compares two Git branches and generates delta manifests under `manifest/` for Salesforce Core (`.xml`) and Vlocity (`.yaml`), including destructive manifests when deletions are detected. It can also merge missing components into existing manifests with `--xml` and `--yaml` without duplicating entries.
13
14
*`sf metadelta findtest` reviews Apex classes inside a local SFDX project, confirms the presence of their corresponding test classes, and can validate existing `package.xml` manifests prior to a deployment. Generated or updated manifests inherit the API version reported by the target org when available.
14
15
*`sf metadelta manual collect` aggregates manual-step markdown documents stored under `docs/`, renders a consolidated index/banner per story, and offers a sprint-aware mode that only includes the files still pending merge into the base branch.
15
16
*`sf metadelta merge` scans manifest XML files whose names contain a given substring, deduplicates their metadata members, and builds a consolidated `globalpackage.xml` (or a custom output filename).
@@ -25,6 +26,7 @@ Created by **Nerio Villalobos** (<nervill@gmail.com>).
1. Runs `git diff --name-status <to>..<from>` to detect additions, deletions, and renames.
149
+
2. Generates Core and Vlocity delta manifests under `manifest/` using the `from` branch as the output name.
150
+
3. Creates destructive manifests automatically when deletions exist.
151
+
4. If `--xml` and/or `--yaml` are provided, merges only missing components into the destination manifests (no duplicates).
152
+
153
+
Core outputs:
154
+
155
+
-`manifest/<from>.xml`
156
+
-`manifest/Destructive-<from>.xml` (only when needed)
157
+
158
+
Vlocity outputs:
159
+
160
+
-`manifest/<from>.yaml`
161
+
-`manifest/Destructive-<from>.yaml` (only when needed)
162
+
163
+
Flags:
164
+
165
+
| Flag | Description |
166
+
|------|-------------|
167
+
|`--from`|**Required.** Source branch (typically the PR branch). |
168
+
|`--to`|**Required.** Base branch for comparison. |
169
+
|`--xml`| Existing destination `package.xml` to update with missing Core components. |
170
+
|`--yaml`| Existing destination YAML manifest to update with missing Vlocity components. |
171
+
135
172
### `postvalidate` command
136
173
137
174
Validates a deployment by re‑retrieving the manifests you used (XML for Salesforce Core and/or YAML for Vlocity) into a temporary folder, comparing the downloaded files against your local sources, and rendering a colorized `Component | Name | Diff` table with `✓` for matches and `✗` for differences.
@@ -511,9 +548,10 @@ This project is released under the [ISC License](LICENSE).
511
548
512
549
## Español
513
550
514
-
Metadelta es un plugin personalizado de Salesforce CLI que ofrece ocho flujos complementarios:
551
+
Metadelta es un plugin personalizado de Salesforce CLI que ofrece diez flujos complementarios:
515
552
516
553
*`sf metadelta find` inspecciona una org de destino y reporta los componentes de metadatos modificados por un usuario específico durante un rango de tiempo reciente, generando opcionalmente manifiestos para despliegues o migraciones de paquetes de Vlocity. Al crear `package.xml`, la versión del manifiesto coincide con la versión de API detectada en la org de destino.
554
+
*`sf metadelta finddelta` compara dos ramas Git y genera manifiestos delta en `manifest/` para Salesforce Core (`.xml`) y Vlocity (`.yaml`), incluyendo manifiestos destructivos cuando detecta eliminaciones. También puede fusionar componentes faltantes en manifiestos existentes con `--xml` y `--yaml` sin duplicar entradas.
517
555
*`sf metadelta findtest` revisa las clases Apex dentro de un proyecto SFDX local, confirma la presencia de sus clases de prueba correspondientes y puede validar `package.xml` existentes antes de un despliegue. Los manifiestos generados o actualizados usan la versión de API que reporte la org de destino cuando esté disponible.
518
556
*`sf metadelta manual collect` consolida los documentos de pasos manuales almacenados en `docs/`, agrega índice y banner informativo y ofrece un modo parcial que solo incluye los archivos aún pendientes de merge en la rama base.
519
557
*`sf metadelta merge` busca archivos de manifiesto cuyos nombres contengan una subcadena específica, unifica sus miembros de metadatos sin duplicados y construye un `globalpackage.xml` consolidado (o el nombre de archivo que indiques).
@@ -529,6 +567,7 @@ Creado por **Nerio Villalobos** (<nervill@gmail.com>).
1. Ejecuta `git diff --name-status <to>..<from>` para detectar adiciones, eliminaciones y renombrados.
684
+
2. Genera manifiestos delta Core y Vlocity en `manifest/` usando la rama `from` en el nombre de salida.
685
+
3. Crea manifiestos destructivos automáticamente cuando existen eliminaciones.
686
+
4. Si indicas `--xml` y/o `--yaml`, fusiona solo los componentes faltantes en los manifiestos destino (sin duplicados).
687
+
688
+
Salidas Core:
689
+
690
+
- `manifest/<from>.xml`
691
+
- `manifest/Destructive-<from>.xml` (solo cuando corresponde)
692
+
693
+
Salidas Vlocity:
694
+
695
+
- `manifest/<from>.yaml`
696
+
- `manifest/Destructive-<from>.yaml` (solo cuando corresponde)
697
+
698
+
Banderas:
699
+
700
+
| Bandera | Descripción |
701
+
|---------|-------------|
702
+
|`--from`|**Requerida.** Rama fuente (normalmente la rama del PR). |
703
+
|`--to`|**Requerida.** Rama base para la comparación. |
704
+
|`--xml`|`package.xml` destino existente para incorporar componentes Core faltantes. |
705
+
|`--yaml`| YAML destino existente para incorporar componentes Vlocity faltantes. |
706
+
633
707
### Comando `access`
634
708
635
709
Metadelta Access es una **herramienta de replicación de accesos de orgs (Org Access Replication Tool)** con controles de seguridad aplicados. Automatiza un proceso que antes era manual para exportar aliases, proteger auth URLs y restaurar accesos entre equipos usando MFA + cifrado con passphrase.
0 commit comments