lock <unlocked thing>
unlock <locked thing>
The thing to be locked or unlocked can be a door or container of some kind.
You must have the proper key to use these commands.
See Also: Exits, Objects, Pick
such as "spell" or