Skip to main content

Example Update and Backup Mechanism

After upgrading boosteros, running boosteros-examples again compares the local example directory against the current SDK built-in examples by version:

  • Versions match: Prints a message that the examples are up to date and exits without modifying any files.

  • Versions differ: Enters an interactive menu with 3 options:

    • [b] Backup (recommended): Renames the local directory to boosteros_examples_old_<timestamp> as a backup, then exports the new version.
    • [o] Overwrite: Overwrites the local directory directly with the new version; existing modifications will be lost.
    • [q] Quit: Cancels the operation.

You can also skip the interactive prompt by passing command-line flags to perform the corresponding action directly:

Flag

Equivalent Option

Behavior

boosteros-examples -b

[b] Backup

Force backup of the old version, then export the new version

boosteros-examples -f

[o] Overwrite

Force overwrite of the existing directory