# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.16.0] - 2026-07-16

### Enhanced
- The `config` command shows server version (if available)

### Updated Dependencies
- deps: archiver@8.0.0
- deps: open@11.0.0
- deps: yaml@2.9.0

### Changed
- The `ai-analyze` command is now hidden (removed from documentation and help)

## [1.15.4] - 2026-04-14

### Added
- Support `--basic` option for `list` command

### Enhanced
- The `list` command shows application version dependencies (service bindings, destinations, applications)

## [1.15.3] - 2026-03-25

### Added
- The `AFCTL_PUSH_MAX_ATTEMPTS` and `AFCTL_PUSH_DELAY` configuration added

### Enhanced
- The `push` command retries to call upload/deploy GACD APIs in case of network errors.

## [1.15.1] - 2026-01-15

### Fixed
- Implemented a persistent beta acceptance mechanism (per user profile) for the `ai-analyze` command, replacing the previous static warning with an interactive prompt. 

## [1.15.0] - 2025-12-07

### Added
- Support of `ai-analyze` command 

### Updated Dependencies
- deps: yaml@2.8.2

## [1.14.0] - 2025-10-26

### Added
- Support command aliases (e.g., `sll` for `set-log-level`, `p` for `push` and `d` for `delete`)
- Support optional `VERSION` parameter for `list` command to list application version details
- Support CLI trace logs to be saved in file specified with `AFCTL_TRACE` environment variable
- Support `--env` option for `config` command

### Fixed
- Rename `--business-service` argument of `init` command to `--business-solution` to match
  corresponding property name.

## [1.13.1] - 2025-10-16

### Enhanced
- The `set-log-level` command now displays log level expiration time when TTL is configured

## [1.13.0] - 2025-10-05

### Added
- Support of `set-log-level` command
- The `list` command now displays the "Log-Level" column

### [1.12.0] - 2025-09-16

### Added
- Support `--delete` option for `config` command
- Validate API server URL during `login`

### [1.11.0] - 2025-09-04

### Added
- Support `--cdm`, `--business-service` and `PATH_TO_APP` options for `init` command

### Fixed
- Use `index.html` as welcome file in `xs-app.json` generated by `init` command, if present
- Make `--name` and `--version` options of `init` named

## [1.10.0] - 2025-08-31

### Added
- Support `--sso` option for `login` command, when running in SAP Business Application Studio

## [1.9.0] - 2025-07-22

### Added
- Support passing `cdm.json` as positional argument to `push` command
- The `AFCTL_SAVE_ZIP` configuration added

### Fixed
- Add `"keepConfig": true` to default deploy configuration

## [1.8.2] - 2025-07-14

### Fixed
- Remove `apptid` from API calls, where it is irrelevant

## [1.8.1] - 2025-07-09

### Added
- Support of `start` command
- Support of `stop` command
- Support of `init` command

## [1.7.0] - 2025-05-05

### Added
- Support login with platform user, by using `--service-key` and `--sso` options together.
- The `AFCTL_POLLING_MAX_ATTEMPTS` and `AFCTL_POLLING_DELAY` configuration added

## [1.6.1] - 2025-04-08

### Fixed
- Changing the minimum required Node version to `22.6.0` to avoid accidental install of old CLI version.

## [1.6.0] - 2025-03-26

### Added
- The `--service-key` option added to `login` command
- The `--activate` and `--no-activate` options added to `push` command
- The `AFCTL_ACTIVATE` configuration added
- Documentation for Global Flags added to README.md

### Fixed
- Documentation (README.md) broken links fixed

## [1.5.1] - 2025-02-16

### Fixed
- Error message for not supported Node.js version
- Documentation of `--force` option for `delete` command
- The `download` command regression fixed

## [1.5.0] - 2025-02-06

### Added
- Support application directories with `xs-app.json` in the parent folder

### Changed
- Delete of application or version now requires confirmation or `-f` flag

### Fixed
- Error message for `403` (policy -> role)

## [1.4.0] - 2025-02-02

### Added
- Always display deployment logs in case of failure

### Fixed
- Format of the deployment logs on failure
- Fix the `--logs` option of `push` command

## [1.3.0] - 2025-01-22

### Added
- Support of `delete application version`
- Open Source Legal Notice

### Fixed
- Fix SSO login flow to avoid IAS limit for parallel refresh tokens

## [1.2.0] - 2024-12-01

### Added
- Support of `download` command
- Support of `install` command
- Support of `uninstall` command

## [1.0.4] - 2024-09-17

### Added
- The `--logs` option added to `push` command
- Print user friendly messages for common HTTP errors (401, 403)

## [1.0.3] - 2024-09-11

### Fixed
- Fix dynamic import URLs for `win32` platform

## [1.0.2] - 2024-09-11

### Fixed
- Fix admin user validation on `win32` platform
- Fix prompt

## [1.0.0] - 2024-09-11

### Added
- Support of `activate` command
- Support of `config` command
- Support of `curl` command
- Support of `delete` command
- Support of `list` command
- Support of `login` command
- Support of `logout` command
- Support of `logs` command
- Support of `push` command
