# Is there a way to programatically to unlock a 6.2 database?

**URL:** <https://forums.foundationdb.org/t/is-there-a-way-to-programatically-to-unlock-a-6-2-database/3984>\
**Category:** Running FoundationDB\
**Created:** [May 26, 2023, 10:31pm UTC](https://forums.foundationdb.org/t/is-there-a-way-to-programatically-to-unlock-a-6-2-database/3984 "2023-05-26T22:31:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tangerine](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/tangerine/32/1084_2.png) [@tangerine](https://forums.foundationdb.org/u/tangerine)\
**Post date:** [May 26, 2023, 10:31pm UTC](https://forums.foundationdb.org/t/is-there-a-way-to-programatically-to-unlock-a-6-2-database/3984/1 "2023-05-26T22:31:25Z")

</div>

Hi,  
I am using FDB 6.2. But to unlock it, I need to pass the lockID and then type in passphrase. I would like to know Is there a good programatic way that I supply the lockID and be able to call the fdbcli and capture the passphase and reenter it?
