Skip to content

Commit

Permalink
Merge pull request #39 from tidev/cli-v7-ga-blog
Browse files Browse the repository at this point in the history
CLI v7 GA blog post
  • Loading branch information
cb1kenobi authored May 10, 2024
2 parents 8076c38 + e048647 commit cba65c3
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 2 deletions.
75 changes: 75 additions & 0 deletions posts/2024/cli_7_0_0_ga.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
title: 'Titanium CLI 7.0.0 GA released'
date: '2024-05-10'
category: 'Release'
author: 'Chris Barber'
teaser: 'Refactor, '
---

![Titanium CLI v7.0.0](/images/cli-7.0.0.png)

Titanium CLI 7 is finally here! This release is a complete refactor that includes several breaking changes and improvements.

## ESM Refactor

Version 7 adopts the ECMAScript Module (ESM) format allowing us to finally be able to update the CLI's dependencies to their latest versions. Equally important, this enables us to finally update the Node.js code in the SDK including the build command logic.

This also allowed us to drop deprecated and unmaintained packages in favor of modern and maintained packages.

## Dead Code Removal

This release removes the remaining Axway/Appcelerator specific code including
analytics, authentication, and Java-based connection test.

The non-functional tab completion has been removed. The i18n system has been removed and now all output is in English.

Additionally, v7 removes HAXM and Genymotion detection. These two Android emulator technologies are inferior to the modern-day emulator bundled with the Android SDK.

## No More Default SDK

The Titanium CLI has always had the concept of a "default SDK". The CLI used the default SDK to create new projects as well as read the `tiapp.xml` and figure out which version of the SDK should be used to build the project. If the `<sdk-version>` in the `tiapp.xml` differed from the default SDK, the CLI would spawn itself again with the correct SDK to use. Not only was this slow but made the code overly complex.

Version 7 removes this default SDK and directly reads the `tiapp.xml` without needing to load an SDK. This allows the CLI to immediately choose the correct SDK when building your project.

Creating new projects will prompt you for the SDK version to use or default to the latest installed GA release.

## Node.js Requirements

Titanium CLI 7 now requires Node.js 18 or newer.

## Notable changes:

* BREAKING: Dropped support for Node.js 16 and older
* BREAKING: Removed `login`, `logout`, `plugin`, and `status` commands
* BREAKING: `ti info` no longer shows `haxm`, `genymotion`, macOS info including Xcode CLI Tools, `jarsigner` tool, or `nodeAppcVer`.
* BREAKING: `ti module` no longer shows both `iphone` and `ios` modules, only `ios`
* BREAKING: `ti sdk --json` no longer contains `activeSDK` (see `ti sdk select` below)

There have been several other improvements:

* Updated dependencies including replacing outdated dependencies with modern alternatives
* Lazy load code when possible; when combined with the removed dead code, the CLI in general should be a tiny bit faster
* `--sdk <ver>` is now a global option
- `ti create` will prompt which SDK you wish to use
* `-d`, `--project-dir` is now a global option
* Added `--json` flag to `ti config`, `ti info`, `ti sdk`, and `ti sdk list`
* `ti sdk select` is no longer needed, now it just reads `<sdk-version>` from the `tiapp.xml`
* Removed all dead code: analytics, telemetry, i18n (for CLI prompts, etc), incomplete tab completion

For a complete list of changes, please see the release notes: [Titanium CLI 7.0.0 Release Notes](https://github.com/tidev/titanium-cli/releases/tag/v7.0.0).

## Install

**To install 7.0.0, run:**

```
[sudo] npm i -g titanium
```

## Report Bugs

If you run into any issues that seem related to the update, please report them on [GitHub](https://github.com/tidev/titanium-cli/issues).

## How can I support?

If you like our work and want to support, think about a [donation](/donate) or to [contribute](/contribute) with your time and code.
4 changes: 2 additions & 2 deletions posts/2024/cli_7_0_0_rc.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Titanium CLI 7.0.0.RC released'
date: '2024-03-06 00:00:00'
date: '2024-03-06'
category: 'RC'
author: 'Chris Barber'
teaser: 'Titanium CLI version 7 is almost here!'
Expand All @@ -14,7 +14,7 @@ This Release Candidate includes several breaking changes and improvements, but m

## Notable changes:

* BREAKING: Dropped support for Node.js 18 and older
* BREAKING: Dropped support for Node.js 16 and older
* BREAKING: Removed `login`, `logout`, `plugin`, and `status` commands
* BREAKING: `ti info` no longer shows `haxm`, `genymotion`, macOS info including Xcode CLI Tools, `jarsigner` tool, or `nodeAppcVer`.
* BREAKING: `ti module` no longer shows both `iphone` and `ios` modules, only `ios`
Expand Down
Binary file added public/images/cli-7.0.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cba65c3

Please sign in to comment.