Use SalesforceXytoolsForSublime Salesforce Deploy Package

Topic

Example

Example, Open Account.object,Blog.page,BlogController.cls,Blog__c.object in Sublime

1539846980157

Sublime-Menu : SFDC-XY > Package Builder > Build Deploy package From Open Files

Input your save path

You can build package.xml like below.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
src
│ package.xml
├─classes
│ BlogController.cls
│ BlogController.cls-meta.xml
├─objects
│ Account.object
│ Blog__c.object
└─pages
Blog.page
Blog.page-meta.xml

about package.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Blog</members>
<name>ApexPage</name>
</types>
<types>
<members>BlogController</members>
<name>ApexClass</name>
</types>
<types>
<members>Account</members>
<members>Blog__c</members>
<name>CustomObject</name>
</types>
<version>42.0</version>
</Package>