Salesforce Certified Slack Developer free question 2 / 10 · Domain 1: Implementing the App Development Lifecycle
A build pipeline should stop the Slack CLI from checking for new versions on every run. Which setting does the documentation give?
- Add a skipUpdates flag to the app manifest in the project root
- Set the SLACK_SKIP_AUTH environment variable to 1 on the build agent
- Delete the .slack directory before the pipeline runs its first step
- Set the SLACK_SKIP_UPDATE environment variable to 1, or pass --skip-update
Show the answer and explanation
Answer: D
Why this is correct
In CI/CD pipelines the Slack CLI would otherwise check for new versions on every run. The guide says to set a SLACK_SKIP_UPDATE environment variable to 1, or to pass --skip-update on each command, to prevent that check. This keeps pipeline output predictable and avoids needless network calls during builds and tests. The documentation states: “set a SLACK_SKIP_UPDATE environment variable to 1 (or pass --skip-update on each command) to prevent the CLI from checking for new versions on every run.”
Why the other options are wrong
"Set the SLACK_SKIP_AUTH environment variable to 1 on the build agent" … SLACK_SKIP_AUTH is not the documented variable. The documented one for update checks is SLACK_SKIP_UPDATE.
"Delete the .slack directory before the pipeline runs its first step" … The .slack directory holds project configuration such as hooks and app IDs. Deleting it would break the project, not disable update checks.
"Add a skipUpdates flag to the app manifest in the project root" … The manifest describes the app. CLI update behavior is controlled by an environment variable or a command flag.
Key points
SLACK_SKIP_UPDATE=1 or --skip-update turns off version checks in CI.