File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ var bulkUpdateCmd = &cobra.Command{
110
110
}
111
111
112
112
var bulkUpsertCmd = & cobra.Command {
113
- Use : "upsert <External_Id_Field__c> <object> <file>" ,
113
+ Use : "upsert -e <External_Id_Field__c> <object> <file>" ,
114
114
Short : "Upsert records from csv file using Bulk API" ,
115
115
Run : runBulkCmd ,
116
- Args : cobra .ExactArgs (3 ),
116
+ Args : cobra .ExactArgs (2 ),
117
117
}
118
118
119
119
var bulkDeleteCmd = & cobra.Command {
@@ -201,7 +201,7 @@ var bulkCmd = &cobra.Command{
201
201
force bulk insert Account [csv file]
202
202
force bulk update Account [csv file]
203
203
force bulk delete Account [csv file]
204
- force bulk upsert ExternalIdField__c Account [csv file]
204
+ force bulk upsert -e ExternalIdField__c Account [csv file]
205
205
force bulk job [job id]
206
206
force bulk batches [job id]
207
207
force Bulk batch [job id] [batch id]
@@ -215,7 +215,6 @@ func runBulkCmd(cmd *cobra.Command, args []string) {
215
215
externalId := ""
216
216
if cmd .Name () == "upsert" {
217
217
externalId , _ = cmd .Flags ().GetString ("externalid" )
218
- args = args [1 :]
219
218
}
220
219
221
220
objectType := args [0 ]
You can’t perform that action at this time.
0 commit comments