Struggling to install anvil-cli.
$ curl -fsSL https://anvil.works/install-cli.sh | sh
Using existing Node.js v25.9.0
Installing anvil-cli...
changed 107 packages in 2s
41 packages are looking for funding
run `npm fund` for details
anvil-cli installed successfully (v0.5.14)
Next steps: run 'anvil configure' or 'anvil checkout'
If your current shell cannot find 'anvil', open a new terminal session.
$ anvil
anvil: command not found
So I tried this :
$ npm install -g @anvil-works/anvil-cli@latest
changed 107 packages in 1s
41 packages are looking for funding
run `npm fund` for details
$ anvil
anvil: command not found
Can someone point me in the right direction please? I can’t find any instructions other than those.
Did you try in another terminal?
(The installation may setup the startup files for the next session, but not the current one.)
Yeah (sorry should have mentioned that). Exactly the same.
I’m not very familiar with node and it’s associated parts. I’m sure I’m doing something wrong but I can’t see what.
edit :
I can see something is installed :
$ npm list -g
/home/user/.anvil-cli/npm-global/lib
└── @anvil-works/anvil-cli@0.5.14
edit 2 :
Ok, this works :
~/.anvil-cli/npm-global/bin/anvil
So it’s clearly not in my path…that’s progress 
Fixed : For future me - added to bashrc manually.
1 Like
This script is not detecting bash. Probably due to the invocation method. Might be better to just detect which env file to write to in a big if statement (ie if bash write to .bashrc, if zsh … etc).
edit -
something like this?
persist_path_hint() {
[ -f "$HOME/.bashrc" ] && append_path_export "$HOME/.bashrc"
[ -f "$HOME/.zshrc" ] && append_path_export "$HOME/.zshrc"
}
1 Like
Ahh yeah, that makes sense. Glad you figured it out, PATH issues are always sneaky.