Skip to content

v4.15.0

Latest

Choose a tag to compare

@zimeg zimeg released this 04 Dec 21:42
bc505d5

Minor Changes

  • 6181a79: The slack app install command now takes the --manifest-source flag that slack run and slack deploy already have, so manifest differences can be resolved without a prompt: local pushes the project manifest to app settings and remote keeps app settings.
  • 48c294a: The slack create . command now creates a project in the current directory when it's empty, and keeps the app names from the template unless the --name flag is provided.
  • fc73271: The create command now prompts you to pick an app when the --template holds several apps in subdirectories, such as slack-samples/bolt-js-starter-agent. Before, it created a project from the template root, which is not a valid Slack app.
  • b4b5b02: slack sandbox delete now also removes the saved login for the deleted sandbox and, when run from a project's root directory, any apps for it in the project's .slack/apps.json and .slack/apps.dev.json, so commands no longer offer a sandbox that doesn't exist.
  • 7db00e5: The slack sandbox signup command is now available without the sandbox-signup experiment, so authenticated developers can join the Slack Developer Program from the Slack CLI. slack sandbox create now also logs you in to the new sandbox, so you can start developing with slack run right away.

Patch Changes

  • ae3686b: slack api --app now errors when it can't get a bot token for the app, instead of sending the request without a token. A deployed app that runs on Slack gets a clear error, since its bot token stays on Slack.
  • 8ef35f8: slack api --app now errors when it's run outside a project, instead of ignoring the flag and sending the request with another token or none.
  • 7dd4824: slack api now exits with an error (exit code 1) when the Slack API response is JSON with "ok": false, and shows Slack's error code with the CLI's usual message and suggestion for it. The response body is still printed to stdout. Scripts that relied on slack api exiting 0 for a failed call will now see a non-zero exit code.
  • 47a3760: Fixed slack create to show a clear "Couldn't access app directory" error when the parent folder of the new app does not exist, is a file, or can't be read.
  • f57f561: The function access command now says "user" or "users" to match the number of users granted or revoked from the prompts.
  • 30d2975: When a command that asks for a secret, such as slack env set, runs without an interactive terminal, the error now suggests running it in a terminal to enter the value with hidden input, before mentioning the flag.
  • ec4ff9f: slack manifest sync and other commands that update an app manifest no longer drop oauth_config.pkce_enabled. Apps with PKCE enabled can now be updated from the CLI.
  • 57a0941: The --manifest-source=local flag now pushes the project manifest to app settings for slack run, slack deploy and slack app install when the project's manifest.source is remote. Before, these commands said the app manifest was updated but sent the manifest from app settings back, so changes to manifest.json never reached the app. The flag now takes precedence over the saved project source in both directions, so --manifest-source=remote keeps app settings on a project saved as local.
  • 342cd52: The sandbox create command no longer writes the --password value to the debug log file or to traces.
  • 64d597a: The Slack CLI now offers to update itself only when it was installed with the installation scripts. Other installs, such as from Homebrew, nix, or a manual install to a custom path, show the update notice without the prompt.
  • ef90f9a: SLACK_DISABLE_TELEMETRY now also stops the CLI from sending traces.
  • 6b24134: The Slack CLI now checks for updates again after about an hour when a check fails, such as while offline, instead of waiting a full day.
  • 249a48f: The slack upgrade command now shows an error when it can't check for updates, such as while offline, instead of reporting that the latest version is installed.