Skip to content

Command Line String Limitation on Windows #2646

@Alfystar

Description

@Alfystar

Bug Description:

On Windows-based systems, there exists a limitation on the number of characters for a command in the terminal, approximately 8191 characters source information.

Issue Background:

In the past, I mitigated this limitation by dividing commands into sub-blocks and concatenating the results. However, with the suspension of ANT usage, executing substantial deployments and validating them is no longer possible using the same approach.

Proposed Solution:

I suggest integrating a new mode for providing parameters to the tool through a standard text file. This file would contain all the parameters that would have been entered on the terminal. Alternatively, allowing the tool to receive argv from stdin would also be a viable solution.

Expected result

The tool should handle commands that surpass the character limit by either accepting parameters from a text file or receiving argv from stdin.

Actual result

The current limitation hinders the ability to perform large-scale deployments and validations on Windows systems, affecting the overall usability and functionality of the tool.

System Information

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.23.20",
  "nodeVersion": "node-v20.10.0",
  "osVersion": "Darwin 23.2.0",
  "rootPath": "/Users/ea_enel/.local/share/sf/client/2.23.20-50cd2d8",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.4 (core)",
    "@oclif/plugin-commands 3.1.0 (core)",
    "@oclif/plugin-help 6.0.9 (core)",
    "@oclif/plugin-not-found 3.0.7 (core)",
    "@oclif/plugin-plugins 4.1.14 (core)",
    "@oclif/plugin-search 1.0.10 (core)",
    "@oclif/plugin-update 4.1.7 (core)",
    "@oclif/plugin-version 2.0.11 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.8 (core)",
    "@oclif/plugin-which 3.0.14 (core)",
    "@salesforce/cli 2.23.20 (core)",
    "apex 3.0.14 (core)",
    "auth 3.1.0 (core)",
    "data 3.0.13 (core)",
    "deploy-retrieve 2.2.12 (core)",
    "info 3.0.13 (core)",
    "limits 3.1.0 (core)",
    "marketplace 1.0.15 (core)",
    "org 3.2.0 (core)",
    "packaging 2.0.1 (core)",
    "schema 3.1.0 (core)",
    "settings 2.0.14 (core)",
    "sobject 1.0.7 (core)",
    "source 3.0.10 (core)",
    "telemetry 3.1.8 (core)",
    "templates 56.0.8 (core)",
    "trust 3.2.5 (core)",
    "user 3.2.0 (core)",
    "sfdx-plugin-source-read 1.2.0 (user)"
  ]
}

Additional information

This limitation is particularly impactful in scenarios where extensive deployments and validations are necessary. The proposed solutions would enhance the tool's versatility and usability on Windows platforms.

Thank you for considering this bug report. Let me know if you need any further information or clarification.

Sincerely,
Emanuele

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue or pull request that identifies or fixes a bugvalidatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions