Skip to content

Releases: dynamicweb/CLI

v1.1.0

13 Apr 12:19

Choose a tag to compare

What's Changed

Dependency modernization

  • Replaced deprecated yargs-interactive with @inquirer/prompts across all interactive commands (env, query, login, utils)
  • Removed unused dependencies (child_process, https, path, fetch shims)
  • Added Node >=20.12.0 engine requirement

Bug fixes

  • login.js: Completed the @inquirer/prompts migration — dw login was broken after the dependency was removed
  • config.js: Fixed dw config crash caused by referencing an undefined variable
  • database.js: Fixed dw database -e exiting before download completes (unawaited promise)
  • command.js, query.js: Fixed global CLI flags (--verbose, --host, --apiKey, etc.) leaking into API requests as parameters
  • install.js: Fixed wildcard file path being resolved after upload instead of before
  • downloader.js: Fixed filename + decoding only replacing the first occurrence
  • files.js: Fixed wildcardToRegExp escaping * instead of converting it to a wildcard pattern
  • files.js: Fixed error logging printing Promise { <pending> } instead of actual error body
  • swift.js: Replaced exec with execFile to prevent potential command injection
  • login.js: Fixed crash when environment exists but no user is set (env.current undefined)
  • Added async/await to all command handlers to surface errors instead of silently swallowing them

Documentation

  • Fixed config path from usr/.dwc to ~/.dwc in README and config command
  • Added Global Options section documenting --host, --apiKey, --protocol, --verbose
  • Updated .NET example path from net6.0 to net10.0
  • Fixed typos

v1.0.0

24 May 08:56

Choose a tag to compare

The initial release version of Dynamicweb CLI.