Guide › Setting up › Install in your app
Update Cognolo in your app
How to tell if your app runs an old version of Cognolo, and how to update it: the easy way with an AI coding assistant, or the steps yourself.
Your app’s code includes Cognolo’s package, @cognolo/runtime. It shows the assistant’s panel and checks every action. Now and then a new version comes out, with fixes and new things the assistant can do.
How to tell if yours is out of date
Open your app’s Setup page in Cognolo. Each environment says which version of the package it runs: newest in green, or which version is out, with a link here. It shows once the app has been used with the assistant.
Some settings in Cognolo (where the panel sits, the look, the filter) need a newer version. Until the app is updated, it simply ignores them. Nothing breaks, and the assistant keeps working as it does now.
The easy way: let an AI coding assistant do it. If it has the Cognolo connector, open your app’s folder and say “Update Cognolo”. It checks which version each environment runs, does every step below, including any a new version needs, and tells you what changed. See Set up with an AI helper.
Doing it yourself, or with your developer
It takes a few minutes, in the app’s own code. Work on a new branch, so nothing changes for people using the app until you put it live.
- Change the version. In the app’s folder, run
npm install @cognolo/runtime(orpnpm add @cognolo/runtime, oryarn add @cognolo/runtime). It changes the version inpackage.jsonfor you. - Add anything new. Run
npx cognolo initagain. It adds any new file the version needs and never writes over your app’s own files. Skip the commands it lists under “Then run”: those are for a first install, and running the database one again isn’t needed. - Do anything the new version asks for. Most versions need nothing more. When one does, such as a database command or a new setting, the Setup page lists it under the version, and an AI coding assistant with the Cognolo connector is told too.
- Check it still works. Run the app’s usual checks and tests, then open the app, sign in and make sure the assistant opens.
- Put it live the way you always do, one environment at a time: Dev, then QA, then Production. On your own computer, stop the app and start it again: a running app keeps the old version until it restarts.
- Look at the Setup page again. Once each environment has been used, it shows newest, and any settings that were waiting take effect.
Nothing you set here is lost while you wait: Cognolo keeps your choices and sends them as soon as the app can use them.