All Projects → amtrack → metadata-xml-tool

amtrack / metadata-xml-tool

Licence: MIT license
CLI tool for processing Salesforce Metadata XML files

Programming Languages

shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to metadata-xml-tool

DXB
A utility cli plugin built on top of #SFDX to facilitate devops.
Stars: ✭ 20 (+42.86%)
Mutual labels:  salesforce, sfdx
forcelog
A structured, extensible logger for Salesforce Apex
Stars: ✭ 37 (+164.29%)
Mutual labels:  salesforce, sfdx
DXMate
Sublime Text 3 plugin to provide integration with the Salesforce DX CLI
Stars: ✭ 14 (+0%)
Mutual labels:  salesforce, sfdx
sfdx-js
A TypeScript compatible JavaScript wrapper for Salesforce DX CLI.
Stars: ✭ 30 (+114.29%)
Mutual labels:  salesforce, sfdx
Steedos Platform
华炎魔方低代码/无代码平台。内核采用了元数据、微服务、微前端、K8S等最新的技术架构。Steedos Low-Code / No-Code Platform in nodejs and mongodb.
Stars: ✭ 310 (+2114.29%)
Mutual labels:  metadata, salesforce
Sfpowerkit
A Salesforce DX Plugin with multiple functionalities aimed at improving development and operational workflows
Stars: ✭ 214 (+1428.57%)
Mutual labels:  metadata, salesforce
texei-sfdx-plugin
Texeï's plugin for sfdx
Stars: ✭ 99 (+607.14%)
Mutual labels:  salesforce, sfdx
pipm
Python dependency management workflow using setup.cfg and requirements files without reinventing the wheels
Stars: ✭ 30 (+114.29%)
Mutual labels:  metadata
IFIscripts
Detailed documentation is available here: http://ifiscripts.readthedocs.io/en/latest/index.html
Stars: ✭ 46 (+228.57%)
Mutual labels:  metadata
unfurl
Extract rich metadata from URLs
Stars: ✭ 41 (+192.86%)
Mutual labels:  metadata
goexif2
MAINTAINER WANTED -- Decode embedded EXIF meta data from image files written in Pure Golang
Stars: ✭ 35 (+150%)
Mutual labels:  metadata
geoflow
R engine to orchestrate and run (meta)data workflows
Stars: ✭ 28 (+100%)
Mutual labels:  metadata
conp-dataset
📂 A DataLad dataset for CONP
Stars: ✭ 17 (+21.43%)
Mutual labels:  metadata
sfdx-flowdoc-plugin
A Salesforce CLI plugin that generates design document from Lightning Flow (currently Process Builder) metadata
Stars: ✭ 56 (+300%)
Mutual labels:  salesforce
MetaCPP
C++ Reflection & Serialization using Clang's LibTooling
Stars: ✭ 44 (+214.29%)
Mutual labels:  metadata
exempi
Exempi: XMP SDK (freedesktop mirror)
Stars: ✭ 19 (+35.71%)
Mutual labels:  metadata
dirdf
R package: dirdf - Extracts Metadata from Directory and File Names
Stars: ✭ 57 (+307.14%)
Mutual labels:  metadata
roda-in
Tool to create Submission Information Packages (SIP)
Stars: ✭ 18 (+28.57%)
Mutual labels:  metadata
metadata-one-liners
retrive metadata endpoint data with these one liners.
Stars: ✭ 38 (+171.43%)
Mutual labels:  metadata
rollup-plugin-sizes
Rollup plugin to display bundle contents & size information
Stars: ✭ 77 (+450%)
Mutual labels:  metadata

metadata-xml-tool

CLI tool for processing Salesforce Metadata XML files

Actions Status

Installation

$ npm install -g metadata-xml-tool

Usage

metadata-xml-tool.

Usage:
        metadata-xml-tool [options] <command>

Commands:
        remove-element <element> [file]...
        remove-element-matching <element> <expression> [file]...
        replace-tag-value <tag> <expression> <new_value> [file]...

Options:
        -h --help       Show help

Examples

$ metadata-xml-tool remove-element validationRules src/objects/Account.object

diff --git a/src/objects/Account.object b/src/objects/Account.object
index 9324e0b..3b2a9ff 100644
--- a/src/objects/Account.object
+++ b/src/objects/Account.object
@@ -478,23 +478,6 @@
         <searchResultsAdditionalFields>CORE.USERS.ALIAS</searchResultsAdditionalFields>
     </searchLayouts>
     <sharingModel>ReadWrite</sharingModel>
-    <validationRules>
-        <fullName>VAT_Number_10</fullName>
-        <active>true</active>
-        <errorConditionFormula>LEN(VAT_Number__c) &lt; 10</errorConditionFormula>
-        <errorDisplayField>VAT_Number__c</errorDisplayField>
-        <errorMessage>VAT Number must be 10 characters</errorMessage>
-    </validationRules>
-    <validationRules>
-        <fullName>Test_Min_5_Max_10</fullName>
-        <active>true</active>
-        <errorConditionFormula>OR(
-            LEN(Test__c) &lt; 5,
-            LEN(Test__c) &gt; 10
-        )</errorConditionFormula>
-        <errorDisplayField>Test__c</errorDisplayField>
-        <errorMessage>Test__c should be between 5 and 10 characters long</errorMessage>
-    </validationRules>
     <webLinks>
         <fullName>AltavistaNews</fullName>
         <availability>online</availability>

$ metadata-xml-tool remove-element-matching listViews "<fullName>Ideas_Last_7_Days</fullName>" src/objects/Idea.object

diff --git a/src/objects/Idea.object b/src/objects/Idea.object
index 7a272cf..e2c9c0d 100644
--- a/src/objects/Idea.object
+++ b/src/objects/Idea.object
@@ -32,25 +32,6 @@
         </picklist>
         <type>Picklist</type>
     </fields>
-    <listViews>
-        <fullName>Ideas_Last_7_Days</fullName>
-        <columns>IDEA.CREATED_DATE</columns>
-        <columns>IDEA.TITLE</columns>
-        <columns>IDEA.CREATED_BY_NICKNAME</columns>
-        <columns>VOTE_STATS.WEIGHTED_SUM</columns>
-        <columns>IDEA.NUM_COMMENTS</columns>
-        <columns>IDEA.STATUS</columns>
-        <columns>IDEA.CATEGORIES</columns>
-        <columns>COMMUNITY.NAME</columns>
-        <columns>IDEA.IDEA_THEME</columns>
-        <filterScope>Everything</filterScope>
-        <filters>
-            <field>IDEA.CREATED_DATE</field>
-            <operation>equals</operation>
-            <value>LAST_N_DAYS:7</value>
-        </filters>
-        <label>Last 7 Days</label>
-    </listViews>
     <recordTypes>
         <fullName>InternalIdeasIdeaRecordType</fullName>
         <active>true</active>

$ metadata-xml-tool remove-element-matching userPermissions "<name>ManageEncryptionKeys</name>" src/profiles/Admin.profile

diff --git a/src/profiles/Admin.profile b/src/profiles/Admin.profile
index e7939c7..33ca7e1 100644
--- a/src/profiles/Admin.profile
+++ b/src/profiles/Admin.profile
@@ -2596,8 +2596,4 @@
         <enabled>true</enabled>
         <name>ViewSetup</name>
     </userPermissions>
-    <userPermissions>
-        <enabled>true</enabled>
-        <name>ManageEncryptionKeys</name>
-    </userPermissions>
 </Profile>

$ metadata-xml-tool replace-tag-value runningUser ".*" "[email protected]" src/dashboards/CompanyDashboards/AdoptionDashboard.dashboard

diff --git a/src/dashboards/CompanyDashboards/AdoptionDashboard.dashboard b/src/dashboards/CompanyDashboards/AdoptionDashboard.dashboard
index 916f693..7c3c3ef 100644
--- a/src/dashboards/CompanyDashboards/AdoptionDashboard.dashboard
+++ b/src/dashboards/CompanyDashboards/AdoptionDashboard.dashboard
@@ -283,7 +283,7 @@
             <useReportChart>false</useReportChart>
         </components>
     </rightSection>
-    <runningUser>[email protected]</runningUser>
+    <runningUser>[email protected]</runningUser>
     <textColor>#000000</textColor>
     <title>Adoption Dashboard</title>
     <titleColor>#000099</titleColor>

Sponsors

License

MIT © Matthias Rolke

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].