A developer needs to bulk export all of the Product data from an org and does not have access to Data Loader or Workbench. However, the Command Line Interface (CLI) is available. Which command allows the developer to accomplish this task?
14 comments · newest first
AS
Asha
10 months ago
B is the way to go, I’ve used it before!
ST
Stephen
11 months ago
C seems off, I don't think that's valid syntax.
LA
Latrice
11 months ago
Definitely not A, that's for querying, not exporting.
TE
Terry
11 months ago
Wait, is D even a real command? Sounds sketchy.
JA
Janna
11 months ago
I think it's B, that command looks right.
FR
Franklyn
11 months ago
Option C seems off to me; I don’t recall using a question mark in CLI commands.
NA
Nathalie
12 months ago
I feel like I’ve seen a similar question before, and I’m leaning towards option A, but I’m not confident about the syntax.
CU
Curtis
12 months ago
I think option B looks familiar; it seems like the right command for exporting all Product2 records.
CE
Cecily
1 year ago
I remember practicing with the CLI commands, but I'm not entirely sure which one is for exporting data.
GI
Gilma
1 year ago
Ah, I see the trick here is that we need to specify the object name, which in this case is "Product2". Option A looks like the right command to use.
VI
Vincenza
1 year ago
I've used the `sfdx force:data:tree:export` command before, so I'm feeling pretty confident about this. I'll go with option B to export all the Product data.
HO
Hollis
1 year ago
Wait, what's the difference between options B and C? I'm a bit confused on the syntax there.
GL
Glendora
1 year ago
Okay, I think I've got this. The key is using the `sfdx force:data:tree:export` command to export the Product data. Let me double-check the syntax.
ST
Stevie
1 year ago
Hmm, this looks like a tricky one. I'll need to carefully review the options and think through the CLI commands I've used before.