While publishing is, by far, the most common action you will perform when working with the packages you provide, there are other things you may need to do.
If you mistakenly published a version of your package or perhaps you find a glaring bug or security hole, you may want to unpublish just that version of your package. For example, if your package is named
package-name and the bad version of your package is v1.2.3 then the command you would execute is:
apm unpublish firstname.lastname@example.org
This will remove just this particular version from the https://atom.io package registry. Anyone who has already downloaded this version will still have it, but it will no longer be available for installation by others.
Some packages get too big for one person. Sometimes priorities change and someone else wants to help out. You can let others help or create co-owners by adding them as a collaborator on the GitHub repository for your package. Note: Anyone that has push access to your repository will have the ability to publish new versions of the package that belongs to that repository.
You can also have packages that are owned by a GitHub organization. Anyone who is a member of an organization's team which has push access to the package's repository will be able to publish new versions of the package.
Danger: This is a permanent change. There is no going back!
If you want to hand off support of your package to someone else, you can do that by transferring the package's repository to the new owner. Once you do that, they can publish a new version with the updated repository information in the
If you no longer want to support your package and cannot find anyone to take it over, you can unpublish your package from https://atom.io. For example, if your package is named
package-name then the command you would execute is:
apm unpublish package-name
This will remove your package from the https://atom.io package registry. Anyone who has already downloaded a copy of your package will still have it and be able to use it, but it will no longer be available for installation by others.
If you need to rename your package for any reason, you can do so with one simple command –
apm publish --rename changes the
name field in your package's
package.json, pushes a new commit and tag, and publishes your renamed package. Requests made to the previous name will be forwarded to the new name.
apm publish --rename new-package-name
Tip: Once a package name has been used, it cannot be re-used by another package even if the original package is unpublished.