Skip to content
Cognolo

Cognolo is in early access, and its hosted service isn’t open yet. This guide describes how the dashboard and the runtime are built to work. Some parts, such as the GitHub App and the code reader, have so far been tried only on sample code. Ask about early access

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.

  1. Change the version. In the app’s folder, run npm install @cognolo/runtime (or pnpm add @cognolo/runtime, or yarn add @cognolo/runtime). It changes the version in package.json for you.
  2. Add anything new. Run npx cognolo init again. 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.
  3. 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.
  4. Check it still works. Run the app’s usual checks and tests, then open the app, sign in and make sure the assistant opens.
  5. 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.
  6. 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.