Skip to main content

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. 

1 件の回答
  1. 2022年4月5日 23:01

    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

    https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation

     

    Linux :

     

    The maximum line length is 4096 chars (including the terminating newline character);

     

    https://unix.stackexchange.com/questions/643777/is-there-any-limit-on-line-length-when-pasting-to-a-terminal-in-linux

0/9000