Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 1.16 KB

spm-commands.md

File metadata and controls

63 lines (35 loc) · 1.16 KB

Spm Commands


spm have a collection of commands for package lifecycle management.

There is a simple list of them, and you can type spm [command] -h to learn more details.

spm init

Init a package from template.

spm login

Login for getting permission.

spm install [name[@version]]

Install dependencies and engines to local folder.

spm publish

Publish a package.

spm unpublish [name[@version]]

Unpublish a package.

spm info [name[@version]]

Show information by package name.

spm search [query]

Search packages.

spm ls

Show the dependencies tree of the package.

spm doc [build|watch|publish]

Documentation management toolkit.

  • spm doc

    Alias for spm doc watch.

  • spm doc watch

    Build and start a watching server of demo site at http://127.0.0.1:8000 .

  • spm doc build

    Build a demo package to _site folder.

  • spm doc publish

    Publish _site folder to spmjs.io. The demo site url is http://docs.spmjs.io/{{package-name}}

spm test

Run test case in phantomjs.

spm build

Build package for browser.