@salesforce/plugin-deploy-retrieve 1.8.3 → 1.8.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/deploy.d.ts +5 -0
- package/lib/commands/deploy.js +5 -0
- package/lib/commands/deploy.js.map +1 -1
- package/lib/commands/project/convert/mdapi.d.ts +32 -0
- package/lib/commands/project/convert/mdapi.js +173 -0
- package/lib/commands/project/convert/mdapi.js.map +1 -0
- package/lib/commands/project/convert/source.d.ts +29 -0
- package/lib/commands/project/convert/source.js +141 -0
- package/lib/commands/project/convert/source.js.map +1 -0
- package/lib/commands/project/delete/source.d.ts +69 -0
- package/lib/commands/project/delete/source.js +423 -0
- package/lib/commands/project/delete/source.js.map +1 -0
- package/lib/commands/project/delete/tracking.d.ts +19 -0
- package/lib/commands/project/delete/tracking.js +49 -0
- package/lib/commands/project/delete/tracking.js.map +1 -0
- package/lib/commands/{deploy/metadata → project/deploy}/cancel.d.ts +2 -0
- package/lib/commands/{deploy/metadata → project/deploy}/cancel.js +13 -3
- package/lib/commands/project/deploy/cancel.js.map +1 -0
- package/lib/commands/{deploy/metadata → project/deploy}/preview.d.ts +3 -0
- package/lib/commands/{deploy/metadata → project/deploy}/preview.js +9 -3
- package/lib/commands/project/deploy/preview.js.map +1 -0
- package/lib/commands/{deploy/metadata → project/deploy}/quick.d.ts +3 -0
- package/lib/commands/{deploy/metadata → project/deploy}/quick.js +10 -4
- package/lib/commands/project/deploy/quick.js.map +1 -0
- package/lib/commands/project/deploy/report.d.ts +22 -0
- package/lib/commands/{deploy/metadata → project/deploy}/report.js +25 -4
- package/lib/commands/project/deploy/report.js.map +1 -0
- package/lib/commands/{deploy/metadata → project/deploy}/resume.d.ts +5 -0
- package/lib/commands/{deploy/metadata → project/deploy}/resume.js +17 -2
- package/lib/commands/project/deploy/resume.js.map +1 -0
- package/lib/commands/{deploy/metadata.d.ts → project/deploy/start.d.ts} +10 -2
- package/lib/commands/{deploy/metadata.js → project/deploy/start.js} +40 -11
- package/lib/commands/project/deploy/start.js.map +1 -0
- package/lib/commands/{deploy/metadata → project/deploy}/validate.d.ts +2 -0
- package/lib/commands/{deploy/metadata → project/deploy}/validate.js +4 -4
- package/lib/commands/project/deploy/validate.js.map +1 -0
- package/lib/commands/project/manifest/create.d.ts +26 -0
- package/lib/commands/project/manifest/create.js +133 -0
- package/lib/commands/project/manifest/create.js.map +1 -0
- package/lib/commands/project/reset/tracking.d.ts +21 -0
- package/lib/commands/project/reset/tracking.js +64 -0
- package/lib/commands/project/reset/tracking.js.map +1 -0
- package/lib/commands/{retrieve/metadata → project/retrieve}/preview.d.ts +2 -0
- package/lib/commands/{retrieve/metadata → project/retrieve}/preview.js +2 -0
- package/lib/commands/project/retrieve/preview.js.map +1 -0
- package/lib/commands/{retrieve/metadata.d.ts → project/retrieve/start.d.ts} +3 -1
- package/lib/commands/{retrieve/metadata.js → project/retrieve/start.js} +8 -6
- package/lib/commands/project/retrieve/start.js.map +1 -0
- package/lib/utils/coverage.d.ts +6 -0
- package/lib/utils/coverage.js +86 -0
- package/lib/utils/coverage.js.map +1 -0
- package/lib/utils/deploy.d.ts +9 -5
- package/lib/utils/deploy.js +21 -24
- package/lib/utils/deploy.js.map +1 -1
- package/lib/utils/deployCache.d.ts +8 -2
- package/lib/utils/deployCache.js +11 -2
- package/lib/utils/deployCache.js.map +1 -1
- package/lib/utils/flags.js +1 -5
- package/lib/utils/flags.js.map +1 -1
- package/lib/utils/manifestCache.d.ts +5 -0
- package/lib/utils/manifestCache.js +38 -0
- package/lib/utils/manifestCache.js.map +1 -0
- package/lib/utils/metadataDeployer.js +1 -0
- package/lib/utils/metadataDeployer.js.map +1 -1
- package/lib/utils/output.d.ts +42 -2
- package/lib/utils/output.js +217 -12
- package/lib/utils/output.js.map +1 -1
- package/lib/utils/previewOutput.d.ts +2 -1
- package/lib/utils/previewOutput.js +14 -22
- package/lib/utils/previewOutput.js.map +1 -1
- package/lib/utils/types.d.ts +35 -0
- package/lib/utils/types.js +3 -1
- package/lib/utils/types.js.map +1 -1
- package/messages/convert.mdapi.md +78 -0
- package/messages/convert.source.md +64 -0
- package/messages/delete.source.md +122 -0
- package/messages/delete.tracking.md +34 -0
- package/messages/deploy.async.md +3 -3
- package/messages/deploy.md +5 -1
- package/messages/deploy.metadata.cancel.md +10 -6
- package/messages/deploy.metadata.md +33 -5
- package/messages/deploy.metadata.preview.md +7 -3
- package/messages/deploy.metadata.quick.md +11 -3
- package/messages/deploy.metadata.report.md +24 -4
- package/messages/deploy.metadata.resume.md +17 -5
- package/messages/deploy.metadata.validate.md +9 -5
- package/messages/manifest.create.md +61 -0
- package/messages/retrieve.metadata.md +1 -1
- package/messages/retrieve.metadata.preview.md +3 -3
- package/oclif.manifest.json +1673 -665
- package/package.json +45 -32
- package/schemas/project-convert-mdapi.json +29 -0
- package/schemas/project-delete-source.json +609 -0
- package/schemas/project-delete-tracking.json +19 -0
- package/schemas/project-manifest-create.json +19 -0
- package/schemas/project-reset-tracking.json +19 -0
- package/lib/commands/deploy/metadata/cancel.js.map +0 -1
- package/lib/commands/deploy/metadata/preview.js.map +0 -1
- package/lib/commands/deploy/metadata/quick.js.map +0 -1
- package/lib/commands/deploy/metadata/report.d.ts +0 -14
- package/lib/commands/deploy/metadata/report.js.map +0 -1
- package/lib/commands/deploy/metadata/resume.js.map +0 -1
- package/lib/commands/deploy/metadata/validate.js.map +0 -1
- package/lib/commands/deploy/metadata.js.map +0 -1
- package/lib/commands/retrieve/metadata/preview.js.map +0 -1
- package/lib/commands/retrieve/metadata.js.map +0 -1
- /package/schemas/{deploy-metadata-cancel.json → project-deploy-cancel.json} +0 -0
- /package/schemas/{deploy-metadata-preview.json → project-deploy-preview.json} +0 -0
- /package/schemas/{deploy-metadata-quick.json → project-deploy-quick.json} +0 -0
- /package/schemas/{deploy-metadata-report.json → project-deploy-report.json} +0 -0
- /package/schemas/{deploy-metadata-resume.json → project-deploy-resume.json} +0 -0
- /package/schemas/{deploy-metadata-validate.json → project-deploy-start.json} +0 -0
- /package/schemas/{deploy-metadata.json → project-deploy-validate.json} +0 -0
- /package/schemas/{retrieve-metadata-preview.json → project-retrieve-preview.json} +0 -0
- /package/schemas/{retrieve-metadata.json → project-retrieve-start.json} +0 -0
|
@@ -25,6 +25,7 @@ export declare const compileResults: ({ componentSet, projectPath, filesWithConf
|
|
|
25
25
|
baseOperation: BaseOperation;
|
|
26
26
|
remoteDeletes?: SourceComponent[] | undefined;
|
|
27
27
|
}) => PreviewResult;
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const printIgnoredTable: (files: PreviewFile[], baseOperation: BaseOperation) => void;
|
|
29
|
+
export declare const printTables: (result: PreviewResult, baseOperation: BaseOperation, onlyIgnored?: boolean) => void;
|
|
29
30
|
export declare const getConflictFiles: (stl?: SourceTracking, ignore?: boolean) => Promise<Set<string>>;
|
|
30
31
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getConflictFiles = exports.printTables = exports.compileResults = void 0;
|
|
3
|
+
exports.getConflictFiles = exports.printTables = exports.printIgnoredTable = exports.compileResults = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* Copyright (c) 2022, salesforce.com, inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -16,18 +16,7 @@ const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
|
|
|
16
16
|
const filePathGenerator_1 = require("@salesforce/source-deploy-retrieve/lib/src/utils/filePathGenerator");
|
|
17
17
|
const types_1 = require("./types");
|
|
18
18
|
core_2.Messages.importMessagesDirectory(__dirname);
|
|
19
|
-
const messages = core_2.Messages.
|
|
20
|
-
'conflicts.header',
|
|
21
|
-
'conflicts.none',
|
|
22
|
-
'ignored.header',
|
|
23
|
-
'ignored.none',
|
|
24
|
-
'deploy.none',
|
|
25
|
-
'deploy.header',
|
|
26
|
-
'delete.header',
|
|
27
|
-
'delete.none',
|
|
28
|
-
'retrieve.header',
|
|
29
|
-
'retrieve.none',
|
|
30
|
-
]);
|
|
19
|
+
const messages = core_2.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'previewMessages');
|
|
31
20
|
const ensureAbsolutePath = (f) => (path.isAbsolute(f) ? f : path.resolve(f));
|
|
32
21
|
// borrowed from STL populateFilesPaths.
|
|
33
22
|
// TODO: this goes in SDR maybe?
|
|
@@ -185,16 +174,19 @@ const printIgnoredTable = (files, baseOperation) => {
|
|
|
185
174
|
core_1.ux.table(files, columns, { sort: 'path' });
|
|
186
175
|
}
|
|
187
176
|
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
177
|
+
exports.printIgnoredTable = printIgnoredTable;
|
|
178
|
+
const printTables = (result, baseOperation, onlyIgnored = false) => {
|
|
179
|
+
if (!onlyIgnored) {
|
|
180
|
+
printConflictsTable(result.conflicts);
|
|
181
|
+
printDeleteTable(result.toDelete);
|
|
182
|
+
if (baseOperation === 'deploy') {
|
|
183
|
+
printDeployTable(result.toDeploy);
|
|
184
|
+
}
|
|
185
|
+
else if (baseOperation === 'retrieve') {
|
|
186
|
+
printRetrieveTable(result.toRetrieve);
|
|
187
|
+
}
|
|
196
188
|
}
|
|
197
|
-
printIgnoredTable(result.ignored, baseOperation);
|
|
189
|
+
(0, exports.printIgnoredTable)(result.ignored, baseOperation);
|
|
198
190
|
};
|
|
199
191
|
exports.printTables = printTables;
|
|
200
192
|
const getConflictFiles = async (stl, ignore = false) => !stl || ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previewOutput.js","sourceRoot":"","sources":["../../src/utils/previewOutput.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6BAA6B;AAC7B,sCAAiC;AACjC,iEAA6D;AAC7D,iCAAkC;AAClC,2CAA4C;AAC5C,+EAQ4C;AAC5C,0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AG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAH3G,QAAA,gBAAgB,oBAG2F"}
|
package/lib/utils/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { FileResponse, MetadataApiDeployStatus, MetadataApiRetrieveStatus, RequestStatus, SourceComponent, FileResponseFailure, FileResponseSuccess } from '@salesforce/source-deploy-retrieve';
|
|
2
|
+
import { DefaultReportOptions, CoverageReporterOptions } from '@salesforce/apex-node';
|
|
3
|
+
export declare const reportsFormatters: string[];
|
|
2
4
|
export declare enum TestLevel {
|
|
3
5
|
NoTestRun = "NoTestRun",
|
|
4
6
|
RunSpecifiedTests = "RunSpecifiedTests",
|
|
@@ -18,6 +20,38 @@ export type AsyncDeployResultJson = Omit<Partial<MetadataApiDeployStatus>, 'stat
|
|
|
18
20
|
status: RequestStatus | 'Queued';
|
|
19
21
|
files: FileResponse[];
|
|
20
22
|
};
|
|
23
|
+
type ConvertEntry = {
|
|
24
|
+
fullName: string;
|
|
25
|
+
type: string;
|
|
26
|
+
filePath: string;
|
|
27
|
+
state: 'Add';
|
|
28
|
+
};
|
|
29
|
+
export type ConvertMdapiJson = ConvertEntry[];
|
|
30
|
+
export type ConvertResultJson = {
|
|
31
|
+
location: string;
|
|
32
|
+
};
|
|
33
|
+
export interface DeleteFormatterOptions {
|
|
34
|
+
verbose?: boolean;
|
|
35
|
+
quiet?: boolean;
|
|
36
|
+
waitTime?: number;
|
|
37
|
+
concise?: boolean;
|
|
38
|
+
username?: string;
|
|
39
|
+
coverageOptions?: CoverageReporterOptions;
|
|
40
|
+
junitTestResults?: boolean;
|
|
41
|
+
resultsDir?: string;
|
|
42
|
+
testsRan?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export type DeleteSourceJson = {
|
|
45
|
+
deletedSource?: FileResponse[];
|
|
46
|
+
deployedSource: FileResponse[];
|
|
47
|
+
outboundFiles: string[];
|
|
48
|
+
deploys?: MetadataApiDeployStatus[];
|
|
49
|
+
deletes?: MetadataApiDeployStatus[];
|
|
50
|
+
replacements?: Record<string, string[]>;
|
|
51
|
+
coverage?: CoverageResultsFileInfo;
|
|
52
|
+
junit?: string;
|
|
53
|
+
} & MetadataApiDeployStatus;
|
|
54
|
+
export type CoverageResultsFileInfo = Record<keyof Partial<typeof DefaultReportOptions>, string>;
|
|
21
55
|
export type DeployResultJson = (MetadataApiDeployStatus & {
|
|
22
56
|
files: FileResponse[];
|
|
23
57
|
} & {
|
|
@@ -36,3 +70,4 @@ export declare const isSourceComponent: (sc: unknown) => sc is SourceComponent &
|
|
|
36
70
|
};
|
|
37
71
|
export declare const isSdrFailure: (fileResponse: FileResponse) => fileResponse is FileResponseFailure;
|
|
38
72
|
export declare const isSdrSuccess: (fileResponse: FileResponse) => fileResponse is FileResponseSuccess;
|
|
73
|
+
export {};
|
package/lib/utils/types.js
CHANGED
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.isSdrSuccess = exports.isSdrFailure = exports.isSourceComponent = exports.API = exports.TestLevel = void 0;
|
|
9
|
+
exports.isSdrSuccess = exports.isSdrFailure = exports.isSourceComponent = exports.API = exports.TestLevel = exports.reportsFormatters = void 0;
|
|
10
10
|
const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
|
|
11
11
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
12
|
+
const apex_node_1 = require("@salesforce/apex-node");
|
|
13
|
+
exports.reportsFormatters = Object.keys(apex_node_1.DefaultReportOptions);
|
|
12
14
|
var TestLevel;
|
|
13
15
|
(function (TestLevel) {
|
|
14
16
|
TestLevel["NoTestRun"] = "NoTestRun";
|
package/lib/utils/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+EAS4C;AAC5C,mDAAgD;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+EAS4C;AAC5C,mDAAgD;AAChD,qDAAsF;AAEzE,QAAA,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,gCAAoB,CAAC,CAAC;AAEnE,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;AACvC,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAED,IAAY,GAGX;AAHD,WAAY,GAAG;IACb,oBAAa,CAAA;IACb,oBAAa,CAAA;AACf,CAAC,EAHW,GAAG,GAAH,WAAG,KAAH,WAAG,QAGd;AAiED,oEAAoE;AAC7D,MAAM,iBAAiB,GAAG,CAAC,EAAW,EAA2C,EAAE,CACxF,IAAA,mBAAQ,EAAC,EAAE,CAAC,IAAI,UAAU,IAAI,EAAE,IAAI,MAAM,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,CAAC;AADrD,QAAA,iBAAiB,qBACoC;AAE3D,MAAM,YAAY,GAAG,CAAC,YAA0B,EAAuC,EAAE,CAC9F,YAAY,CAAC,KAAK,KAAK,wCAAe,CAAC,MAAM,CAAC;AADnC,QAAA,YAAY,gBACuB;AAEzC,MAAM,YAAY,GAAG,CAAC,YAA0B,EAAuC,EAAE,CAC9F,YAAY,CAAC,KAAK,KAAK,wCAAe,CAAC,MAAM,CAAC;AADnC,QAAA,YAAY,gBACuB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
convert metadata from the Metadata API format into the source format
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Converts metadata retrieved via Metadata API into the source format used in Salesforce DX projects.
|
|
8
|
+
|
|
9
|
+
To use Salesforce CLI to work with components that you retrieved via Metadata API, first convert your files from the metadata format to the source format using "sfdx force:mdapi:convert".
|
|
10
|
+
|
|
11
|
+
To convert files from the source format back to the metadata format, so that you can deploy them using "<%= config.bin %> project deploy", run "<%= config.bin %> project convert source".
|
|
12
|
+
|
|
13
|
+
# examples
|
|
14
|
+
|
|
15
|
+
- $ <%= config.bin %> <%= command.id %> -r path/to/metadata
|
|
16
|
+
|
|
17
|
+
- $ <%= config.bin %> <%= command.id %> -r path/to/metadata -d path/to/outputdir
|
|
18
|
+
|
|
19
|
+
# flags.root-dir
|
|
20
|
+
|
|
21
|
+
the root directory containing the Metadata API–formatted metadata
|
|
22
|
+
|
|
23
|
+
# flags.output-dir
|
|
24
|
+
|
|
25
|
+
the output directory to store the source–formatted files
|
|
26
|
+
|
|
27
|
+
# flags.manifest
|
|
28
|
+
|
|
29
|
+
file path to manifest (package.xml) of metadata types to convert.
|
|
30
|
+
|
|
31
|
+
# flags.metadata-path
|
|
32
|
+
|
|
33
|
+
comma-separated list of metadata file paths to convert
|
|
34
|
+
|
|
35
|
+
# flags.metadata
|
|
36
|
+
|
|
37
|
+
comma-separated list of metadata component names to convert
|
|
38
|
+
|
|
39
|
+
# flagsLong.root-dir
|
|
40
|
+
|
|
41
|
+
The root directory that contains the metadata you retrieved using Metadata API.
|
|
42
|
+
|
|
43
|
+
# flagsLong.output-dir
|
|
44
|
+
|
|
45
|
+
The directory to store your files in after they’re converted to the source format. Can be an absolute or relative path.
|
|
46
|
+
|
|
47
|
+
# flagsLong.manifest
|
|
48
|
+
|
|
49
|
+
- The complete path to the manifest (package.xml) file that specifies the metadata types to convert.
|
|
50
|
+
|
|
51
|
+
- If you specify this parameter, don’t specify --metadata or --source-path.
|
|
52
|
+
|
|
53
|
+
# flagsLong.metadata-path
|
|
54
|
+
|
|
55
|
+
- A comma-separated list of paths to the local metadata files to convert. The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its sub-directories).
|
|
56
|
+
|
|
57
|
+
- If you specify this parameter, don’t specify --manifest or --metadata. If the comma-separated list you’re supplying contains spaces, enclose the entire comma-separated list in one set of double quotes.
|
|
58
|
+
|
|
59
|
+
# flagsLong.metadata
|
|
60
|
+
|
|
61
|
+
A comma-separated list of metadata component names to convert.
|
|
62
|
+
|
|
63
|
+
# expectedDirectory
|
|
64
|
+
|
|
65
|
+
Expected a directory but found a file.
|
|
66
|
+
|
|
67
|
+
# expectedFile
|
|
68
|
+
|
|
69
|
+
Expected a file but found a directory.
|
|
70
|
+
|
|
71
|
+
# InvalidFlagPath
|
|
72
|
+
|
|
73
|
+
The %s command parameter specifies an invalid path: %s
|
|
74
|
+
%s
|
|
75
|
+
|
|
76
|
+
# notFound
|
|
77
|
+
|
|
78
|
+
No such file or directory.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
convert source into Metadata API format
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
convert source into Metadata API format
|
|
8
|
+
Converts source-formatted files into metadata that you can deploy using Metadata API.
|
|
9
|
+
To convert source-formatted files into the metadata format, so that you can deploy them using Metadata API,
|
|
10
|
+
run "<%= config.bin %> project convert mdapi". Then deploy the metadata using "<%= config.bin %> project deploy".
|
|
11
|
+
|
|
12
|
+
To convert Metadata API–formatted files into the source format, run "<%= config.bin %> project convert mdapi".
|
|
13
|
+
|
|
14
|
+
To specify a package name that includes spaces, enclose the name in single quotes.
|
|
15
|
+
|
|
16
|
+
# examples
|
|
17
|
+
|
|
18
|
+
- $ <%= config.bin %> <%= command.id %> -r path/to/source
|
|
19
|
+
|
|
20
|
+
- $ <%= config.bin %> <%= command.id %> -r path/to/source -d path/to/outputdir -n 'My Package'
|
|
21
|
+
|
|
22
|
+
# flags.root-dir
|
|
23
|
+
|
|
24
|
+
a source directory other than the default package to convert
|
|
25
|
+
|
|
26
|
+
# flags.output-dir
|
|
27
|
+
|
|
28
|
+
output directory to store the Metadata API–formatted files in
|
|
29
|
+
|
|
30
|
+
# flags.package-name
|
|
31
|
+
|
|
32
|
+
name of the package to associate with the metadata-formatted files
|
|
33
|
+
|
|
34
|
+
# flags.manifest
|
|
35
|
+
|
|
36
|
+
file path to manifest (package.xml) of metadata types to convert.
|
|
37
|
+
|
|
38
|
+
# flags.source-path
|
|
39
|
+
|
|
40
|
+
comma-separated list of paths to the local source files to convert
|
|
41
|
+
|
|
42
|
+
# flags.metadata
|
|
43
|
+
|
|
44
|
+
comma-separated list of metadata component names to convert
|
|
45
|
+
|
|
46
|
+
# flagsLong.manifest
|
|
47
|
+
|
|
48
|
+
- The complete path to the manifest (package.xml) file that specifies the metadata types to convert.
|
|
49
|
+
|
|
50
|
+
- If you specify this parameter, don’t specify --metadata or --source-path.
|
|
51
|
+
|
|
52
|
+
# flagsLong.source-path
|
|
53
|
+
|
|
54
|
+
- A comma-separated list of paths to the local source files to convert. The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its sub-directories).
|
|
55
|
+
|
|
56
|
+
- If you specify this parameter, don’t specify --manifest or --metadata.
|
|
57
|
+
|
|
58
|
+
# success
|
|
59
|
+
|
|
60
|
+
Source was successfully converted to Metadata API format and written to the location: %s
|
|
61
|
+
|
|
62
|
+
# convertFailed
|
|
63
|
+
|
|
64
|
+
Failed to convert source
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
delete source from your project and from a non-source-tracked org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
delete source from your project and from a non-source-tracked org
|
|
8
|
+
IMPORTANT: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
|
|
9
|
+
|
|
10
|
+
Use this command to delete components from orgs that don’t have source tracking.
|
|
11
|
+
To remove deleted items from scratch orgs, which have change tracking, use "sf project deploy start".
|
|
12
|
+
|
|
13
|
+
# examples
|
|
14
|
+
|
|
15
|
+
- $ <%= config.bin %> <%= command.id %> -m <metadata>
|
|
16
|
+
|
|
17
|
+
- $ <%= config.bin %> <%= command.id %> -p path/to/source
|
|
18
|
+
|
|
19
|
+
# flags.source-path
|
|
20
|
+
|
|
21
|
+
comma-separated list of source file paths to delete
|
|
22
|
+
|
|
23
|
+
# flags.metadata
|
|
24
|
+
|
|
25
|
+
comma-separated list of names of metadata components to delete
|
|
26
|
+
|
|
27
|
+
# flags.no-prompt
|
|
28
|
+
|
|
29
|
+
do not prompt for delete confirmation
|
|
30
|
+
|
|
31
|
+
# flags.wait
|
|
32
|
+
|
|
33
|
+
wait time for command to finish in minutes
|
|
34
|
+
|
|
35
|
+
# flags.check-only
|
|
36
|
+
|
|
37
|
+
validate delete command but do not delete from the org or delete files locally
|
|
38
|
+
|
|
39
|
+
# flags.test-Level
|
|
40
|
+
|
|
41
|
+
deployment testing level
|
|
42
|
+
|
|
43
|
+
# flags.track-source
|
|
44
|
+
|
|
45
|
+
If the delete succeeds, update the source tracking information, similar to push
|
|
46
|
+
|
|
47
|
+
# flags.force-overwrite
|
|
48
|
+
|
|
49
|
+
ignore conflict warnings and overwrite changes to the org
|
|
50
|
+
|
|
51
|
+
# flags.verbose
|
|
52
|
+
|
|
53
|
+
verbose output of delete result
|
|
54
|
+
|
|
55
|
+
# flagsLong.check-only
|
|
56
|
+
|
|
57
|
+
- Validates the deleted metadata and runs all Apex tests, but prevents the deletion from being saved to the org.
|
|
58
|
+
|
|
59
|
+
- If you change a field type from Master-Detail to Lookup or vice versa, that change isn’t supported when using the --chec-konly parameter to test a deletion (validation). This kind of change isn’t supported for test deletions to avoid the risk of data loss or corruption. If a change that isn’t supported for test deletions is included in a deletion package, the test deletion fails and issues an error.
|
|
60
|
+
|
|
61
|
+
- If your deletion package changes a field type from Master-Detail to Lookup or vice versa, you can still validate the changes prior to deploying to Production by performing a full deletion to another test Sandbox. A full deletion includes a validation of the changes as part of the deletion process.
|
|
62
|
+
|
|
63
|
+
- Note: A Metadata API deletion that includes Master-Detail relationships deletes all detail records in the Recycle Bin in the following cases.
|
|
64
|
+
|
|
65
|
+
- 1. For a deletion with a new Master-Detail field, soft delete (send to the Recycle Bin) all detail records before proceeding to delete the Master-Detail field, or the deletion fails. During the deletion, detail records are permanently deleted from the Recycle Bin and cannot be recovered.
|
|
66
|
+
|
|
67
|
+
- 2. For a deletion that converts a Lookup field relationship to a Master-Detail relationship, detail records must reference a master record or be soft-deleted (sent to the Recycle Bin) for the deletion to succeed. However, a successful deletion permanently deletes any detail records in the Recycle Bin.
|
|
68
|
+
|
|
69
|
+
# flagsLong.metadata
|
|
70
|
+
|
|
71
|
+
- A comma-separated list of names of metadata components to delete from your project and your org.
|
|
72
|
+
|
|
73
|
+
- If you specify this parameter, don’t specify --source-path.
|
|
74
|
+
|
|
75
|
+
# flagsLong.source-path
|
|
76
|
+
|
|
77
|
+
- A comma-separated list of paths to the local metadata to delete. The supplied paths can be a single file (in which case the operation is applied to only one file) or a folder (in which case the operation is applied to all metadata types in the directory and its sub-directories).
|
|
78
|
+
|
|
79
|
+
- If you specify this parameter, don’t specify --metadata.
|
|
80
|
+
|
|
81
|
+
# flagsLong.wait
|
|
82
|
+
|
|
83
|
+
Number of minutes to wait for the command to complete and display results to the terminal window. If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
|
|
84
|
+
|
|
85
|
+
# flagsLong.test-Level
|
|
86
|
+
|
|
87
|
+
- Specifies which level of deployment tests to run. Valid values are:
|
|
88
|
+
|
|
89
|
+
- NoTestRu — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.
|
|
90
|
+
|
|
91
|
+
- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.
|
|
92
|
+
|
|
93
|
+
- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.
|
|
94
|
+
|
|
95
|
+
- If you don’t specify a test level, the default behavior depends on the contents of your deployment package. For more information, see “Running Tests in a Deployment” in the Metadata API Developer Guide.
|
|
96
|
+
|
|
97
|
+
# localPrompt
|
|
98
|
+
|
|
99
|
+
This operation will delete the following files on your computer and in your org:
|
|
100
|
+
%s
|
|
101
|
+
|
|
102
|
+
# remotePrompt
|
|
103
|
+
|
|
104
|
+
This operation will delete the following metadata in your org:
|
|
105
|
+
%s
|
|
106
|
+
|
|
107
|
+
# deployPrompt
|
|
108
|
+
|
|
109
|
+
This operation will deploy the following:
|
|
110
|
+
%s
|
|
111
|
+
|
|
112
|
+
# areYouSure
|
|
113
|
+
|
|
114
|
+
Are you sure you want to proceed?
|
|
115
|
+
|
|
116
|
+
# areYouSureCheckOnly
|
|
117
|
+
|
|
118
|
+
Are you sure you want to proceed (this is only a check and won't actually delete anything)?
|
|
119
|
+
|
|
120
|
+
# conflictMsg
|
|
121
|
+
|
|
122
|
+
We couldn't complete the operation due to conflicts. Verify that you want to keep the existing versions, then run the command again with the --force-overwrite (-f) option.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# resetDescription
|
|
2
|
+
|
|
3
|
+
reset local and remote source tracking
|
|
4
|
+
|
|
5
|
+
WARNING: This command deletes or overwrites all existing source tracking files. Use with extreme caution.
|
|
6
|
+
|
|
7
|
+
Resets local and remote source tracking so that the CLI no longer registers differences between your local files and those in the org. When you next run force:source:status, the CLI returns no results, even though conflicts might actually exist. The CLI then resumes tracking new source changes as usual.
|
|
8
|
+
|
|
9
|
+
Use the --revision parameter to reset source tracking to a specific revision number of an org source member. To get the revision number, query the SourceMember Tooling API object with the force:data:soql:query command. For example:
|
|
10
|
+
$ sfdx force:data:soql:query -q "SELECT MemberName, MemberType, RevisionCounter FROM SourceMember" -t
|
|
11
|
+
|
|
12
|
+
# deleteDescription
|
|
13
|
+
|
|
14
|
+
delete all local source tracking information
|
|
15
|
+
|
|
16
|
+
WARNING: This command deletes or overwrites all existing source tracking files. Use with extreme caution.
|
|
17
|
+
|
|
18
|
+
Deletes all local source tracking information. When you next run 'project deploy preview', the CLI displays all local and remote files as changed, and any files with the same name are listed as conflicts.
|
|
19
|
+
|
|
20
|
+
# no-promptDescription
|
|
21
|
+
|
|
22
|
+
do not prompt for source tracking override confirmation
|
|
23
|
+
|
|
24
|
+
# revisionDescription
|
|
25
|
+
|
|
26
|
+
reset to a specific SourceMember revision counter number
|
|
27
|
+
|
|
28
|
+
# promptMessage
|
|
29
|
+
|
|
30
|
+
WARNING: This operation will modify all your local source tracking files. The operation can have unintended consequences on all the force:source commands. Are you sure you want to proceed?
|
|
31
|
+
|
|
32
|
+
# conflictMsg
|
|
33
|
+
|
|
34
|
+
We couldn't complete the operation due to conflicts. Verify that you want to keep the existing versions, then run the command again with the --forceoverwrite (-f) option.
|
package/messages/deploy.async.md
CHANGED
|
@@ -8,12 +8,12 @@ Deploy has been queued for cancellation.
|
|
|
8
8
|
|
|
9
9
|
# info.AsyncDeployCancel
|
|
10
10
|
|
|
11
|
-
Run "sf deploy
|
|
11
|
+
Run "sf project deploy cancel --job-id %s" to cancel the deploy.
|
|
12
12
|
|
|
13
13
|
# info.AsyncDeployStatus
|
|
14
14
|
|
|
15
|
-
Run "sf deploy
|
|
15
|
+
Run "sf project deploy report --job-id %s" to get the latest status.
|
|
16
16
|
|
|
17
17
|
# info.AsyncDeployResume
|
|
18
18
|
|
|
19
|
-
Run "sf deploy
|
|
19
|
+
Run "sf project deploy resume --job-id %s" to resume watching the deploy.
|
package/messages/deploy.md
CHANGED
|
@@ -12,7 +12,7 @@ For example, if your local project contains a source directory with metadata fil
|
|
|
12
12
|
|
|
13
13
|
The command stores your responses in the "deploy-options.json" file in your local project directory and uses them as defaults when you rerun the command. Specify --interactive to force the command to reprompt.
|
|
14
14
|
|
|
15
|
-
Use this command for quick and simple deploys. For more complicated deployments, use the environment-specific commands, such as "sf deploy
|
|
15
|
+
Use this command for quick and simple deploys. For more complicated deployments, use the environment-specific commands, such as "sf project deploy start", that provide additional flags.
|
|
16
16
|
|
|
17
17
|
# examples
|
|
18
18
|
|
|
@@ -84,3 +84,7 @@ Deployer "%s" exited with code %d.
|
|
|
84
84
|
# save.as.default
|
|
85
85
|
|
|
86
86
|
Save username %s as default?
|
|
87
|
+
|
|
88
|
+
# deprecation
|
|
89
|
+
|
|
90
|
+
The top-level deploy command is deprecated. You should use `functions deploy` to deploy functions, and use `project deploy start` to deploy metadata to Salesforce orgs.
|
|
@@ -26,10 +26,10 @@ Job ID of the deploy operation you want to cancel.
|
|
|
26
26
|
|
|
27
27
|
These commands return a job ID if they time out or you specified the --async flag:
|
|
28
28
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
29
|
+
- <%= config.bin %> project deploy start
|
|
30
|
+
- <%= config.bin %> project deploy validate
|
|
31
|
+
- <%= config.bin %> project deploy quick
|
|
32
|
+
- <%= config.bin %> project deploy cancel
|
|
33
33
|
|
|
34
34
|
The job ID is valid for 10 days from when you started the deploy operation.
|
|
35
35
|
|
|
@@ -47,7 +47,7 @@ Number of minutes to wait for the command to complete and display results.
|
|
|
47
47
|
|
|
48
48
|
# flags.wait.description
|
|
49
49
|
|
|
50
|
-
If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the cancellation, run "sf deploy
|
|
50
|
+
If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the cancellation, run "sf project deploy resume". To check the status of the cancellation, run "<%= config.bin %> project deploy report".
|
|
51
51
|
|
|
52
52
|
# flags.async.summary
|
|
53
53
|
|
|
@@ -55,8 +55,12 @@ Run the command asynchronously.
|
|
|
55
55
|
|
|
56
56
|
# flags.async.description
|
|
57
57
|
|
|
58
|
-
The command immediately returns the control of the terminal to you. This way, you can continue to use the CLI. To resume watching the cancellation, run "sf deploy
|
|
58
|
+
The command immediately returns the control of the terminal to you. This way, you can continue to use the CLI. To resume watching the cancellation, run "sf project deploy resume". To check the status of the cancellation, run "<%= config.bin %> project deploy report".
|
|
59
59
|
|
|
60
60
|
# error.CannotCancelDeploy
|
|
61
61
|
|
|
62
62
|
Can't cancel deploy because it's already completed.
|
|
63
|
+
|
|
64
|
+
# error.CannotCancelDeployPre
|
|
65
|
+
|
|
66
|
+
Can't cancel deploy with Job Id %s because it's already completed (status is %s)
|
|
@@ -56,6 +56,18 @@ To deploy multiple metadata components, either set multiple --metadata <name> fl
|
|
|
56
56
|
|
|
57
57
|
Login username or alias for the target org.
|
|
58
58
|
|
|
59
|
+
# flags.pre-destructive-changes
|
|
60
|
+
|
|
61
|
+
file path for a manifest (destructiveChangesPre.xml) of components to delete before the deploy
|
|
62
|
+
|
|
63
|
+
# flags.post-destructive-changes
|
|
64
|
+
|
|
65
|
+
file path for a manifest (destructiveChangesPost.xml) of components to delete after the deploy
|
|
66
|
+
|
|
67
|
+
# flags.purge-on-delete
|
|
68
|
+
|
|
69
|
+
specify that deleted components in the destructive changes manifest file are immediately eligible for deletion rather than being stored in the Recycle Bin
|
|
70
|
+
|
|
59
71
|
# flags.target-org.description
|
|
60
72
|
|
|
61
73
|
Overrides your default org.
|
|
@@ -98,7 +110,7 @@ Number of minutes to wait for command to complete and display results.
|
|
|
98
110
|
|
|
99
111
|
# flags.wait.description
|
|
100
112
|
|
|
101
|
-
If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume the deployment, run "sf deploy
|
|
113
|
+
If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume the deployment, run "sf project deploy resume". To check the status of the deployment, run "sf project deploy report".
|
|
102
114
|
|
|
103
115
|
# flags.manifest.summary
|
|
104
116
|
|
|
@@ -166,7 +178,7 @@ Run the command asynchronously.
|
|
|
166
178
|
|
|
167
179
|
# flags.async.description
|
|
168
180
|
|
|
169
|
-
The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run "sf deploy
|
|
181
|
+
The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run "sf project deploy resume". To check the status of the deployment, run "sf project deploy report".
|
|
170
182
|
|
|
171
183
|
# flags.metadata-dir.summary
|
|
172
184
|
|
|
@@ -191,7 +203,7 @@ You must specify tests using the --tests flag if the --test-level flag is set to
|
|
|
191
203
|
|
|
192
204
|
# error.ClientTimeout
|
|
193
205
|
|
|
194
|
-
The command has timed out, although the deployment is still running. Use "sf deploy
|
|
206
|
+
The command has timed out, although the deployment is still running. Use "sf project deploy resume" to resume watching the deployment.
|
|
195
207
|
|
|
196
208
|
# error.Conflicts
|
|
197
209
|
|
|
@@ -201,7 +213,7 @@ There are changes in the org that conflict with the local changes you're trying
|
|
|
201
213
|
|
|
202
214
|
- To overwrite the remote changes, rerun this command with the --ignore-conflicts flag.
|
|
203
215
|
|
|
204
|
-
- To overwrite the local changes, run the "sf retrieve
|
|
216
|
+
- To overwrite the local changes, run the "sf project retrieve start" command with the --ignore-conflicts flag.
|
|
205
217
|
|
|
206
218
|
# error.nothingToDeploy
|
|
207
219
|
|
|
@@ -209,4 +221,20 @@ No local changes to deploy.
|
|
|
209
221
|
|
|
210
222
|
# error.nothingToDeploy.Actions
|
|
211
223
|
|
|
212
|
-
- To see conflicts and ignored files, run "sf deploy
|
|
224
|
+
- To see conflicts and ignored files, run "sf project deploy preview" with any of the manifest, directory, or metadata flags.
|
|
225
|
+
|
|
226
|
+
# flags.junit
|
|
227
|
+
|
|
228
|
+
output JUnit test results
|
|
229
|
+
|
|
230
|
+
# flags.coverage-formatters
|
|
231
|
+
|
|
232
|
+
format of the code coverage results
|
|
233
|
+
|
|
234
|
+
# flags.results-dir
|
|
235
|
+
|
|
236
|
+
output directory for code coverage and JUnit results; defaults to the deploy ID
|
|
237
|
+
|
|
238
|
+
# asyncCoverageJunitWarning
|
|
239
|
+
|
|
240
|
+
You requested an async deploy with code coverage or JUnit results. The reports will be available when the deploy completes.
|