Summary
On Windows 11, table-style output generated by Salesforce CLI with -r human becomes misaligned when the output contains Japanese or other wide characters.
I reproduced this in both Command Prompt (cmd.exe) and PowerShell. The issue appears to affect column width calculation in human-readable table output. JSON output does not appear to have the same problem.
I searched existing open and closed issues for related reports and found some similar formatting issues, but I could not find one specifically covering column misalignment caused by Japanese / wide characters in -r human output.
Steps To Reproduce
IMPORTANT
Provide a repository that's configured to reproduce the issue. If you are unable to provide a repo, please explain why not. The more info we have from the start, the faster we can resolve your issue.
We may close your issue if you don't include proper instructions.
- Generate a project with
sf project generate or fork dreamhouse-lwc.
- Provide detailed step-by-step instructions on how to reproduce the issue.
I am unable to provide a repository because this issue appears to be related to CLI output rendering in the Windows terminal environment rather than project-specific source code.
Steps:
- Open
cmd.exe or PowerShell on Windows 11.
- Run an
sf command with -r human that outputs table-formatted results containing Japanese text.
- Observe that rows containing Japanese text cause the columns to become misaligned.
Example pattern:
sf data query -r human -q "SELECT Id, Name FROM User LIMIT 10"
- Output includes Japanese text in one or more columns
- Misalignment occurs only in
-r human output
Expected result
Column widths should be calculated correctly even when the output contains Japanese or other wide characters, and the table should remain aligned and readable in Windows terminals.
Actual result
When Japanese text is included in -r human output, table columns become misaligned in both Command Prompt and PowerShell on Windows 11, making the output difficult to read.
Additional information
- Reproduced on Windows 11
- Reproduced in both
cmd.exe and PowerShell
- The problem appears specific to
-r human
--json output seems to avoid the issue
- This may affect not only Japanese, but other languages that use wide characters as well
System Information
cmd.exe
{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.129.8",
"nodeVersion": "node-v22.22.1",
"osVersion": "Windows_NT 10.0.26200",
"rootPath": "C:\\Users\\MaskedUserName\\AppData\\Local\\sf\\client\\2.129.8-2017716",
"shell": "cmd.exe",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.42 (core)",
"@oclif/plugin-commands 4.1.42 (core)",
"@oclif/plugin-help 6.2.40 (core)",
"@oclif/plugin-not-found 3.2.77 (core)",
"@oclif/plugin-plugins 5.4.59 (core)",
"@oclif/plugin-search 1.2.41 (core)",
"@oclif/plugin-update 4.7.27 (core)",
"@oclif/plugin-version 2.2.39 (core)",
"@oclif/plugin-warn-if-update-available 3.1.57 (core)",
"@oclif/plugin-which 3.2.46 (core)",
"@salesforce/cli 2.129.8 (core)",
"agent 1.32.11 (core)",
"apex 3.9.15 (core)",
"api 1.3.12 (core)",
"auth 4.3.2 (core)",
"code-analyzer 5.11.1 (user) published 7 days ago (Mon Mar 30 2026)",
"data 4.0.83 (core)",
"deploy-retrieve 3.24.18 (core)",
"info 3.4.114 (core)",
"limits 3.3.81 (core)",
"marketplace 1.3.10 (core)",
"org 5.9.75 (core)",
"packaging 2.25.12 (core)",
"schema 3.3.100 (core)",
"settings 2.4.62 (core)",
"sobject 1.4.88 (core)",
"telemetry 3.8.5 (core)",
"templates 56.11.4 (core)",
"trust 3.7.114 (core)",
"user 3.8.0 (core)"
]
}
PowerShell
{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.129.8",
"nodeVersion": "node-v22.22.1",
"osVersion": "Windows_NT 10.0.26200",
"rootPath": "C:\\Users\\MaskedUserName\\AppData\\Local\\sf\\client\\2.129.8-2017716",
"shell": "powershell",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.42 (core)",
"@oclif/plugin-commands 4.1.42 (core)",
"@oclif/plugin-help 6.2.40 (core)",
"@oclif/plugin-not-found 3.2.77 (core)",
"@oclif/plugin-plugins 5.4.59 (core)",
"@oclif/plugin-search 1.2.41 (core)",
"@oclif/plugin-update 4.7.27 (core)",
"@oclif/plugin-version 2.2.39 (core)",
"@oclif/plugin-warn-if-update-available 3.1.57 (core)",
"@oclif/plugin-which 3.2.46 (core)",
"@salesforce/cli 2.129.8 (core)",
"agent 1.32.11 (core)",
"apex 3.9.15 (core)",
"api 1.3.12 (core)",
"auth 4.3.2 (core)",
"code-analyzer 5.11.1 (user) published 7 days ago (Mon Mar 30 2026)",
"data 4.0.83 (core)",
"deploy-retrieve 3.24.18 (core)",
"info 3.4.114 (core)",
"limits 3.3.81 (core)",
"marketplace 1.3.10 (core)",
"org 5.9.75 (core)",
"packaging 2.25.12 (core)",
"schema 3.3.100 (core)",
"settings 2.4.62 (core)",
"sobject 1.4.88 (core)",
"telemetry 3.8.5 (core)",
"templates 56.11.4 (core)",
"trust 3.7.114 (core)",
"user 3.8.0 (core)"
]
}
Summary
On Windows 11, table-style output generated by Salesforce CLI with
-r humanbecomes misaligned when the output contains Japanese or other wide characters.I reproduced this in both Command Prompt (
cmd.exe) and PowerShell. The issue appears to affect column width calculation in human-readable table output. JSON output does not appear to have the same problem.I searched existing open and closed issues for related reports and found some similar formatting issues, but I could not find one specifically covering column misalignment caused by Japanese / wide characters in
-r humanoutput.Steps To Reproduce
I am unable to provide a repository because this issue appears to be related to CLI output rendering in the Windows terminal environment rather than project-specific source code.
Steps:
cmd.exeor PowerShell on Windows 11.sfcommand with-r humanthat outputs table-formatted results containing Japanese text.Example pattern:
sf data query -r human -q "SELECT Id, Name FROM User LIMIT 10"-r humanoutputExpected result
Column widths should be calculated correctly even when the output contains Japanese or other wide characters, and the table should remain aligned and readable in Windows terminals.
Actual result
When Japanese text is included in
-r humanoutput, table columns become misaligned in both Command Prompt and PowerShell on Windows 11, making the output difficult to read.Additional information
cmd.exeand PowerShell-r human--jsonoutput seems to avoid the issueSystem Information
cmd.exe
{ "architecture": "win32-x64", "cliVersion": "@salesforce/cli/2.129.8", "nodeVersion": "node-v22.22.1", "osVersion": "Windows_NT 10.0.26200", "rootPath": "C:\\Users\\MaskedUserName\\AppData\\Local\\sf\\client\\2.129.8-2017716", "shell": "cmd.exe", "pluginVersions": [ "@oclif/plugin-autocomplete 3.2.42 (core)", "@oclif/plugin-commands 4.1.42 (core)", "@oclif/plugin-help 6.2.40 (core)", "@oclif/plugin-not-found 3.2.77 (core)", "@oclif/plugin-plugins 5.4.59 (core)", "@oclif/plugin-search 1.2.41 (core)", "@oclif/plugin-update 4.7.27 (core)", "@oclif/plugin-version 2.2.39 (core)", "@oclif/plugin-warn-if-update-available 3.1.57 (core)", "@oclif/plugin-which 3.2.46 (core)", "@salesforce/cli 2.129.8 (core)", "agent 1.32.11 (core)", "apex 3.9.15 (core)", "api 1.3.12 (core)", "auth 4.3.2 (core)", "code-analyzer 5.11.1 (user) published 7 days ago (Mon Mar 30 2026)", "data 4.0.83 (core)", "deploy-retrieve 3.24.18 (core)", "info 3.4.114 (core)", "limits 3.3.81 (core)", "marketplace 1.3.10 (core)", "org 5.9.75 (core)", "packaging 2.25.12 (core)", "schema 3.3.100 (core)", "settings 2.4.62 (core)", "sobject 1.4.88 (core)", "telemetry 3.8.5 (core)", "templates 56.11.4 (core)", "trust 3.7.114 (core)", "user 3.8.0 (core)" ] }PowerShell
{ "architecture": "win32-x64", "cliVersion": "@salesforce/cli/2.129.8", "nodeVersion": "node-v22.22.1", "osVersion": "Windows_NT 10.0.26200", "rootPath": "C:\\Users\\MaskedUserName\\AppData\\Local\\sf\\client\\2.129.8-2017716", "shell": "powershell", "pluginVersions": [ "@oclif/plugin-autocomplete 3.2.42 (core)", "@oclif/plugin-commands 4.1.42 (core)", "@oclif/plugin-help 6.2.40 (core)", "@oclif/plugin-not-found 3.2.77 (core)", "@oclif/plugin-plugins 5.4.59 (core)", "@oclif/plugin-search 1.2.41 (core)", "@oclif/plugin-update 4.7.27 (core)", "@oclif/plugin-version 2.2.39 (core)", "@oclif/plugin-warn-if-update-available 3.1.57 (core)", "@oclif/plugin-which 3.2.46 (core)", "@salesforce/cli 2.129.8 (core)", "agent 1.32.11 (core)", "apex 3.9.15 (core)", "api 1.3.12 (core)", "auth 4.3.2 (core)", "code-analyzer 5.11.1 (user) published 7 days ago (Mon Mar 30 2026)", "data 4.0.83 (core)", "deploy-retrieve 3.24.18 (core)", "info 3.4.114 (core)", "limits 3.3.81 (core)", "marketplace 1.3.10 (core)", "org 5.9.75 (core)", "packaging 2.25.12 (core)", "schema 3.3.100 (core)", "settings 2.4.62 (core)", "sobject 1.4.88 (core)", "telemetry 3.8.5 (core)", "templates 56.11.4 (core)", "trust 3.7.114 (core)", "user 3.8.0 (core)" ] }