artiframe upgrade
The artiframe upgrade command is used to safely update your current project's core files to the latest version after you have updated your ArtiFrame CLI tool globally.
Usage
$ artiframe upgrade
Smart Change Detection and Reporting
Unlike traditional framework updates, ArtiFrame does not overwrite files blindly. It compares the MD5 hashes of the files in your current project against the original stub files to identify only the changed files. Once the update is complete, it presents you with a detailed Changelog Report.
$ artiframe upgrade
🚀 Starting update...
✅ ArtiFrame updated successfully.
📊 Changelog Report:
----------------------------------------
[ADDED]
+ app/Core/NewSecurityFeature.php
[UPDATED]
~ bin/SystemMethod.php
~ src/Service/StripeService.php
[NEW FUNCTION] createSubscription() - Please refer to the docs.
Safety Rules and Overwrite Protection
The ArtiFrame upgrade command operates under strict rules to ensure your project doesn't break:
-
Core Warnings: If you have manually modified core files in the
app/orbin/directories (which is not recommended), the system will warn you with"Core files have been modified, do you want to proceed?"and wait for your confirmation. -
Public Directory Protection (Safe Copy): The
public/directory containing your HTML interfaces and assets (CSS/JS) is protected. The CLI will add new system files here but will never overwrite any of your existing files. -
Service Updates and Function Analysis: While updating your extension (wrapper) files in the
src/Servicedirectory, it analyzes the classes between the old and new files using Regex. If the core team has added a new function to the service (e.g.,IyzicoService->refund()), developers are notified of this in the update report via a[NEW FUNCTION]tag.