mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-01 12:20:24 +08:00
28 lines
899 B
YAML
28 lines
899 B
YAML
name: show_access_token
|
|
# Primary access-token retrieval path per forcedotcom/cli#3560 (effective
|
|
# 2026-05-27). The `sf org display --json` field is now redacted to a
|
|
# placeholder string by default; the dedicated `sf org auth show-access-token`
|
|
# command is the long-term replacement.
|
|
#
|
|
# `--no-prompt` skips the interactive confirmation banner so the command
|
|
# behaves identically under `--json`.
|
|
#
|
|
# The legacy fallback (`sf org display` with `SF_TEMP_SHOW_SECRETS=true`)
|
|
# stays wired for sf CLI versions that don't ship show-access-token; that
|
|
# fallback is orchestrated in `main.py::_resolve_creds`, not here.
|
|
argv:
|
|
- sf
|
|
- org
|
|
- auth
|
|
- show-access-token
|
|
- --target-org
|
|
- "{{ORG_ALIAS}}"
|
|
- --json
|
|
- --no-prompt
|
|
timeout_seconds: 60
|
|
required_params: [ORG_ALIAS]
|
|
success_check: stdout_json_status_zero
|
|
auth_required_stderr_patterns:
|
|
- NoOrgAuthenticationError
|
|
- AuthInfoError
|