[READ-ONLY] Mirror of https://github.com/FoxxMD/komodo-import. Import existing compose stacks into Komodo foxxmd.github.io/komodo-import
compose docker import komodo toml
0

Configure Feed

Select the types of activity you want to include in your feed.

docs: Add update/delete Stack guidance in FAQ

FoxxMD (Sep 17, 2025, 3:34 PM UTC) 01451076 f3726203

+59 -1
+59 -1
docsite/docs/help.mdx
··· 12 12 13 13 ## Found a Bug or Error? 14 14 15 - If Komodo Import is not behaving as you expect it to or is outputting errors that break functionality please search [Github Issues](https://github.com/FoxxMD/komodo-import/issues) and [open a New Issue](https://github.com/FoxxMD/komodo-import/issues/new) if you cannot find a solution to your problem. 15 + If Komodo Import is not behaving as you expect it to or is outputting errors that break functionality please search [Github Issues](https://github.com/FoxxMD/komodo-import/issues) and [open a New Issue](https://github.com/FoxxMD/komodo-import/issues/new) if you cannot find a solution to your problem. 16 + 17 + ## FAQ 18 + 19 + ### How do I change/fix created Stacks? {#update-stacks} 20 + 21 + Komodo computes differences between what is described in a [Sync Resource](https://komo.do/docs/resources/sync-resources) and what is currently deployed in Komodo. With this ability, you can make changes to a Sync and **Execute** it to make Komodo automatically update the deployed Resource of the same name(s). This makes it easy to "fix" Stacks without having to start from scratch. The approaches below all describe ways to update your existing Sync Resource. 22 + 23 + #### Edit Manually 24 + 25 + If the change you want to make is small (only a few Stacks need to change) or is for a setting Komodo Import does not support yet, you can manually edit the **Resoure Files/Info** section of the Sync yourself. After **Saving**, **Execute** the Sync to make the changes propogate into Komodo. 26 + 27 + Or, alternatively, update the Stack directly. 28 + 29 + #### Bulk Update using Komodo Import 30 + 31 + ##### Using API Output {#update-using-api-output} 32 + 33 + With [API Output](../usage/overview#api-sync), add this to your Komodo Import environment: 34 + 35 + ``` 36 + EXISTING_SYNC=overwrite 37 + ``` 38 + 39 + and re-run Komodo Import. This will make Komodo Import overwrite the contents of the existing Sync with the updated, generated Stacks. Then, [Verify and Execute Sync](http://localhost:3001/docs/usage/resourceSync/#verify-syn) as normal to make Komodo propogate the changes. 40 + 41 + ##### Using Console Output {#update-using-console-output} 42 + 43 + With [Console Output](../usage/overview#console), copy the new output from Komodo Import and replace the contents of your existing Sync (in the **Resoure Files/Info** section). [Verify and Execute Sync](http://localhost:3001/docs/usage/resourceSync/#verify-syn) as normal to make Komodo propogate the changes. 44 + 45 + ### How do I delete created Stacks? 46 + 47 + If you are trying to re-create the Stack with new settings because the existing ones are wrong try [change/fixing the stacks instead.](#update-stacks) 48 + 49 + The easiest way to delete stacks in bulk is from the Stacks list page in Komodo (Stacks in sidebar). Toggle the checkbox for all Stacks to delete and click **Group Actions** -> **Delete**. 50 + 51 + <details markdown="1"> 52 + 53 + <summary>Using Sync Resource (Advanced)</summary> 54 + 55 + Stacks can also be deleted using a separate Sync Resource with **Delete Unmatched Resources** option enabled. This option will make Komodo delete any Resources **that are not described in the Sync Resource**. 56 + 57 + **Be careful with this method and double check the contents before using.** You could accidentially delete Servers (hosts connected with Periphery), Variables, etc... if they are not included. 58 + 59 + Steps: 60 + 61 + * Create a new Sync with **Managed** option enabled, if you don't already have one 62 + * Commit/Refresh the Sync so that the **Resoure Files/Info** section includes **ALL** Resources in Komodo. 63 + * Verify this! It should include `[[server]]` sections and other Resources, besides just Stacks. 64 + * In **Resoure Files/Info** section remove all `[[stack]]`, with proceeding data, sections you want to delete. Then **Save** 65 + * In the config for the Sync enable **Delete Unmatched Resources** and **Save** 66 + * Switch to the **Execute** tab and **Execute Change** to delete all undesired Stacks 67 + 68 + At this point the Sync can be used as a "good rollback state" for Komodo like so: 69 + 70 + * Use Komodo Import to create Stacks in another Sync, Execute...stacks are created 71 + * Don't like how Stacks were created or something is wrong and can't use [update method](#update-stacks)? **Execute Change** on your "rollback state" Sync to one-click return Komodo to where it was before using Komodo Import. 72 + 73 + </details>