Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 938 Bytes

File metadata and controls

51 lines (35 loc) · 938 Bytes

Install

Install the latest prebuilt binary for your platform and add shell integration:

curl -fsSL https://raw.githubusercontent.com/b4fun/ai/main/install.sh | sh

Install a specific release:

curl -fsSL https://raw.githubusercontent.com/b4fun/ai/main/install.sh | sh -s -- v0.1.2

Customize the shell wrapper name:

curl -fsSL https://raw.githubusercontent.com/b4fun/ai/main/install.sh | AI_SHELL_NAME=a sh

Skip shell integration:

curl -fsSL https://raw.githubusercontent.com/b4fun/ai/main/install.sh | AI_INSTALL_SHELL=0 sh

Developer install:

npm install
npm link

Upgrade the installed binary to the latest release:

command ai upgrade

Upgrade to a specific release:

command ai upgrade v0.1.2

If shell integration changes after an upgrade, refresh it:

command ai upgrade
command ai shell install zsh --name ai   # or bash/fish