How to session with bash scripts?

how to create session through cli. I dont see a command listed to create session. I want to try the acquire and release feature on kvs. I am trying with cli or some bash scripts.

Hi @tilakraj9560, check out the consul lock command. It allows you to establish a session and lock on a particular KV path, and then execute a sub-command when the lock is acquired.

1 Like