Sublime Forum

License key entry from the command line?

#1

I own a single-user Sublime license.

I’m currently in the process of migrating my desktop development environment into a Vagrant virtual machine, which I may arbitrarily tear down and rebuild or restore to a snapshot. Following such actions, Sublime would be eliminated from the install and I’d need to reinstall it. Vagrant offers pretty awesome scripted provisioning abilities, but it depends on being able to do things from the command line.

Does Sublime offer a way to enter a license key from the command line, rather than by using the UI?

0 Likes

#2

OK, I just found this:

In short, you can simply replace the generated license file contents with your plain-text license and Sublime will work. This is probably a viable workaround for my use case. I will go give it a shot and report back.

0 Likes

#3

Yup, works great (Windows directions):

Make a text file called “License.sublime_license”
Put your exact text license that you received via email upon purchase into it
After installing Sublime, copy the file into ~\AppData\Roaming\Sublime Text 3\Local

Sublime will be registered without any UI interaction.

0 Likes