Skip to content

"sf data" ignores CI env vars--no way to suppress progress output #3268

@tggagne

Description

@tggagne

Summary

"sf data" commands always output progress information regardless the environment variables or if running without a terminal

Steps To Reproduce

set all the environment variables that /should/ limit sf cli command output

export SF_USE_PROGRESS_BAR=false
export SF_CI_HEARTBEAT_FREQUENCY_MS=600000
export SF_CI_UPDATE_FREQUENCY_MS=600000
export SF_CONTAINER_MODE=true

(i do that inside a script)

run the command
sf data export bulk --wait 30 -q "select id from apexlog where starttime < today" --output-file=truncate.97766 -o goat

Expected result

the command shouldn't output a bunch of noise to stdout

Actual result

The output below is repeated over and over and over... (trying to email result from crontab)

  Exporting data

  creating query job
  processing the job
  exporting records

 Status:
 Job Id:
 Elapsed Time: 0ms

�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[G
  Exporting data

  creating query job 0ms
  processing the job
  exporting records

 Status:
 Job Id:
 Elapsed Time: 104ms

�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[G

System Information

shell - zsh on man, bash on ubuntu, and bash in sf-supplied docker

root@d5d7234b113c:~/git/hwk-linux-build# sf version --verbose --json

{
  "architecture": "linux-x64",
  "cliVersion": "@salesforce/cli/2.84.6",
  "nodeVersion": "node-v22.14.0",
  "osVersion": "Linux 6.10.14-linuxkit",
  "rootPath": "/usr/local/lib/nodejs/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.27 (core)",
    "@oclif/plugin-commands 4.1.22 (core)",
    "@oclif/plugin-help 6.2.27 (core)",
    "@oclif/plugin-not-found 3.2.49 (core)",
    "@oclif/plugin-plugins 5.4.36 (core)",
    "@oclif/plugin-search 1.2.23 (core)",
    "@oclif/plugin-update 4.6.36 (core)",
    "@oclif/plugin-version 2.2.27 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.38 (core)",
    "@oclif/plugin-which 3.2.34 (core)",
    "@salesforce/cli 2.84.6 (core)",
    "apex 3.6.12 (core)",
    "api 1.3.3 (core)",
    "auth 3.6.109 (core)",
    "data 4.0.25 (core)",
    "deploy-retrieve 3.21.3 (core)",
    "info 3.4.51 (core)",
    "limits 3.3.51 (core)",
    "marketplace 1.3.8 (core)",
    "org 5.6.0 (core)",
    "packaging 2.12.3 (core)",
    "schema 3.3.58 (core)",
    "settings 2.4.22 (core)",
    "sobject 1.4.53 (core)",
    "telemetry 3.6.38 (core)",
    "templates 56.3.43 (core)",
    "trust 3.7.79 (core)",
    "user 3.6.16 (core)",
    "sfdx-git-delta 6.6.0 (user) published 6 days ago (Sat Apr 12 2025)"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingWe're actively investigating this issuevalidatedVersion information for this issue has been validated

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions