UNPKG

1.53 kBJavaScriptView Raw
1const warning =
2 'WARNING: This command deletes or overwrites all existing source tracking files. Use with extreme caution.';
3
4module.exports = {
5 resetDescription: `reset local and remote source tracking
6
7${warning}
8
9Resets 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.
10
11Use 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:
12 $ sfdx force:data:soql:query -q "SELECT MemberName, MemberType, RevisionCounter FROM SourceMember" -t`,
13
14 clearDescription: `clear all local source tracking information
15
16${warning}
17
18Clears all local source tracking information. When you next run force:source:status, the CLI displays all local and remote files as changed, and any files with the same name are listed as conflicts.`,
19
20 nopromptDescription: 'do not prompt for source tracking override confirmation',
21 revisionDescription: 'reset to a specific SourceMember revision counter number',
22 promptMessage:
23 '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 (y/n)?'
24};