Add Package Control in Sublime Text 3 through the command line

Enrique Moreno Tent

I am trying to make a script for setting up my development environment automatically in a linux machine. One of this steps is to install Sublime Text 3.

Installing sublime is not a problem, but I would enjoy if I could install the package manager as well.

Is there any way to install the package manager from the command line?

MattDMo

The easiest way is to download https://packagecontrol.io/Package%20Control.sublime-package using wget or curl, and store it in ~/.config/sublime-text-3/Installed Packages. It will then set itself up upon first starting the editor. As a bonus, if you create ~/.config/sublime-text-3/Packages/User/Package Control.sublime-settings and populate it with the packages you want installed, everything should work more-or-less automatically to download and install everything. A restart is generally a good idea, but this is a good way to script the setup of a new development environment. As an example, a minimal ST3 Package Control.sublime-settings file is below, so you can get an idea of how it's set up:

{
    "installed_packages":
    [
        "AutoFileName",
        "BracketHighlighter",
        "ExportHtml",
        "GenerateUUID",
        "HexViewer",
        "Neon Color Scheme",
        "PackageResourceViewer",
        "PlistJsonConverter",
        "Python Flake8 Lint",
        "Python Improved",
        "SideBarEnhancements",
        "SideBarGit",
        "SublimeCodeIntel",
        "SublimeREPL",
        "Tag",
        "Terminal",
        "Theme - Soda"
    ]
}

Good luck!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Sublime Text 3 package control seems gone

From Dev

sublime text 3 package control freeze on install

From Dev

Unable to find Emmet in package control in Sublime Text 3

From Dev

How to suppress Package Control Messages popup in Sublime Text 3

From Dev

How to uninstall/remove Package Control from Sublime Text 3?

From Dev

Sublime Text through command line: Don't open more than 1 window/instance, add to working project instead

From Dev

Open a folder in Sublime Text 3 using command line

From Dev

Command Line Window in Sublime Text

From Dev

Sublime Text Package Control search not work properly

From Dev

sublime text: manually install package control

From Dev

Sublime Text Package Control search not work properly

From Dev

Package Control in Sublime3 not working?

From Dev

Sublime 3 error installing package control

From Dev

Lauching Sublime Text From Command Line

From Dev

Lauching Sublime Text From Command Line

From Dev

Sublime Text How to add package to global repository

From Dev

Sublime Text How to add package to global repository

From Dev

Why package does not appear in sublime text 2 Package Control?

From Dev

Why package does not appear in sublime text 2 Package Control?

From Dev

Newly installed Sublime Text 3 package commands do not show up in the command pallette

From Dev

Passing Element Through Sublime Text 3 Plugin

From Dev

How to navigate through words in sublime text 3

From Dev

Sublime Text 3 'subl' command still linked to Sublime Text 2

From Dev

Sublime Text 3 System Package Location?

From Dev

Sublime Text 3 Better Coffee​Script package

From Dev

autocompletion for sublime text 3 package anaconda is slow

From Dev

Why can't I launch Sublime Text 3 with sudo from my command line?

From Dev

Sublime Text 3 unable to import python module although importing from command line is possible?

From Dev

How to run command on save in Sublime Text 3?

Related Related

  1. 1

    Sublime Text 3 package control seems gone

  2. 2

    sublime text 3 package control freeze on install

  3. 3

    Unable to find Emmet in package control in Sublime Text 3

  4. 4

    How to suppress Package Control Messages popup in Sublime Text 3

  5. 5

    How to uninstall/remove Package Control from Sublime Text 3?

  6. 6

    Sublime Text through command line: Don't open more than 1 window/instance, add to working project instead

  7. 7

    Open a folder in Sublime Text 3 using command line

  8. 8

    Command Line Window in Sublime Text

  9. 9

    Sublime Text Package Control search not work properly

  10. 10

    sublime text: manually install package control

  11. 11

    Sublime Text Package Control search not work properly

  12. 12

    Package Control in Sublime3 not working?

  13. 13

    Sublime 3 error installing package control

  14. 14

    Lauching Sublime Text From Command Line

  15. 15

    Lauching Sublime Text From Command Line

  16. 16

    Sublime Text How to add package to global repository

  17. 17

    Sublime Text How to add package to global repository

  18. 18

    Why package does not appear in sublime text 2 Package Control?

  19. 19

    Why package does not appear in sublime text 2 Package Control?

  20. 20

    Newly installed Sublime Text 3 package commands do not show up in the command pallette

  21. 21

    Passing Element Through Sublime Text 3 Plugin

  22. 22

    How to navigate through words in sublime text 3

  23. 23

    Sublime Text 3 'subl' command still linked to Sublime Text 2

  24. 24

    Sublime Text 3 System Package Location?

  25. 25

    Sublime Text 3 Better Coffee​Script package

  26. 26

    autocompletion for sublime text 3 package anaconda is slow

  27. 27

    Why can't I launch Sublime Text 3 with sudo from my command line?

  28. 28

    Sublime Text 3 unable to import python module although importing from command line is possible?

  29. 29

    How to run command on save in Sublime Text 3?

HotTag

Archive