Hi,
Can someone confirm that there are no hard limits on the length of the SFDX command string? In short, I am thinking of listing out just the classes I want when I do deploy. Something like this:
sfdx force:mdapi:deploy -l RunSpecifiedTests -r SomeClass,SomeClass2,SomeClass3 -u ...
And before I fully commit to this idea, I would like to understand if there are any limits I should know of. Like max string length
#Automation or how many test classes I can list after -r.
I was able to find this online but wanted to confirm with this community as well.
Hi Art,
I think that the limit depends on the OS. For example on MS Windows:
The maximum length of the string that you can use at the command prompt is 8191 characters.
Command prompt (Cmd. exe) command-line string limitation
Linux :
The maximum line length is 4096 chars (including the terminating newline character);