Salesforce CLI Command Reference
Release Notes
Deprecation Policy
alias list
alias set
alias unset
Unset one or more aliases that are currently set on your local computer.
Aliases are global, so when you unset one it’s no longer available in any Salesforce DX project.
force:alias:unset
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑all | ‑a | Type: Boolean Unset all currently set aliases. |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑no‑prompt | ‑p | Type: Boolean Don’t prompt the user for confirmation when unsetting all aliases. |
Unset an alias:
1sf alias unset my-aliasUnset multiple aliases with a single command:
1sf alias unset my-alias my-other-aliasUnset all aliases:
1sf alias unset --all [--no-prompt]