This console command will instantly unlock the object (e.g. a container, chest or door) you have selected as your target.
unlock Target Command
This is the only way the unlock command can be executed. This will unlock the object you currently have targeted. To select a locked object as a target, open up the console and click the object.