Updating or uninstalling aio, and checking the files with SHA256

All in One AIThe aio Command·· 4 views· 3 min read

aio is a single file with no dependencies. Updating means installing again, and uninstalling is one command. If you want to confirm that the file you downloaded is the real one, the SHA256 sums are published next to it.

See the version

aio --version

It shows the version, the brand and the API address. The current version is on the CLI page of the docs.

Update

Run the install command again. The new file replaces the old one. On Linux and macOS:

curl -fsSL https://docs.mozout.com/cli/install.sh | sh

On Windows, in PowerShell:

irm https://docs.mozout.com/cli/install.ps1 | iex

If you installed with npm, use the npm command on the CLI page, which always has the package of the current version. The saved key stays in the settings file, apart from the command.

Uninstall

Installed with To uninstall
The installer, on Linux or macOS curl -fsSL https://docs.mozout.com/cli/install.sh | sh -s -- --uninstall
The installer, on Windows & ([scriptblock]::Create((irm https://docs.mozout.com/cli/install.ps1))) -Uninstall
npm npm uninstall -g aio-cli
Uninstalling aio does not delete the saved key. To delete it, run aio auth logout before you uninstall. The key is in ~/.config/aio/config.json and, on Windows, in %APPDATA%\aio\config.json. If the key may have reached the wrong hands, revoke it in the API Center.

Check the files with SHA256

The installer already checks the SHA256 on its own. To check aio.js by hand, on Linux:

curl -fsSLO https://docs.mozout.com/cli/aio.js
curl -fsSLO https://docs.mozout.com/cli/SHA256SUMS
sha256sum --ignore-missing -c SHA256SUMS

The aio.js line should end in OK. On macOS, run shasum -a 256 aio.js and compare the result with the aio.js line in SHA256SUMS.

File, at https://docs.mozout.com/cli/ What it is
aio.js The command, in a single file.
The .tgz package The package for npm, with the version in its name.
install.sh and install.ps1 The installers for Linux and macOS and for Windows.
SHA256SUMS The SHA256 sums of all the files.
You can read the installers before running them. Neither asks for sudo or administrator rights: aio goes in ~/.local/bin/aio and, on Windows, in %LOCALAPPDATA%\aio.

Want every aio command? See All in One AI and the CLI page.

See All in One AI

SEE ALSO

The aio command: AI in your terminal, installed in one line

AI in the terminal with the aio command: installing, logging in and chatting

An API key or token has leaked: what to do, in the right order

aio errors: no key, 401, 402, the waiting time and Node.js 18

All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from £5.28/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.