I just installed sdkman for installing grails on my machine (MacOS). When I run which sdk command I don\'t get any output. But when I run the sdk help
which sdk
sdk help
OK. So I found it out. As @that-other-guy mentioned in the comment above, I used type -a instead of which, which showed me that it was a function defined.
type -a
which