Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@node-sitecore/cli

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-sitecore/cli

A node Sitecore cli

  • 2.2.0
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-67.86%
Maintainers
2
Weekly downloads
 
Created
Source

node-sitecore-cli

Build Status Coverage Status npm version Dependencies img img Known Vulnerabilities semantic-release

A Sitecore cli

Installation

$ npm install -g @node-sitecore/cli

Usage

 Usage: nsc [options] [command]


  Options:

    -V, --version  output the version number
    -h, --help     output usage information


  Commands:

    init        Create configuration file for a Sitecore Project
    restore     Restore all NuGet Packages
    install     Install a sitecore package
    build       Build project solution
    unicorn     Perform a Unicorn synchronisation
    publish     Publish content (Foundation, Feature, Project)
    help [cmd]  display help for [cmd]
    

Build command options

Build your solution depending on your configuration or on the given options.

OptionDefault valueDescription
--log-command, -lfalseLogs the msbuild command that will be executed.
--targets, -t <list> BuildSpecify Build Targets.
--configuration, -c <config> DebugSpecify Build Configuration (Release or Debug).
--solution-platform, -p <plateform> AnyCPUSpecify the Solution Platform (e.g. x86, x64, AnyCPU).
--tools-version, -n <version> 15.0Specify the .NET Tools-Version (1.0, 1.1, 2.0, 3.5, 4.0, 12.0, 14.0, 15.0, auto).
--architecture, -a <arch> Auto-detectedSpecify the Architecture (x86, x64).
--verbosity, -v <level> minimalSpecify the amount of information to display in the build output (quiet, minimal, normal, detailed, diagnostic).
--maxcpucount, -m <cpunb> 0Specify Maximal CPU-Count to use. (-1: MSBuild Default, 0: Automatic selection, > 0: Concrete value).
--node-reuse, -r <boolean> trueSpecify whether to enable or disable the re-use of MSBuild nodes (true or false).
--nologo Suppress Startup Banner and Copyright Message of MSBuild.

It also possible to give additional arguments to the msBuild command directly. Just use -- after the command line.

nsc build --targets Clean,Build -- /noautoresponse
With specific paths
From .nscrc
nsc build

Note: buildPaths support glob pattern !

Configuration example:

{
  "buildPaths": [
    "<solutionPath>",  // use default solution (Base.sln)
    "<rootDir>/**/*.sln" // build all solution
  ]
}
From args
nsc build --paths Base.sln,Other.sln,src/**/code/*.csproj

Note: --paths option support glob pattern !

Publish Foundation/Feature/Project only
nsc build Foundation

Publish command options

By default build the solution (eg. Base.sln) and publish it depending on your configuration or on the given options.

OptionDefault valueDescription
--log-command, -lfalseLogs the msbuild command that will be executed.
--targets, -t <list> BuildSpecify Publish Targets.
--paths <list> Base.sln,Other.slnSpecify the solutions or projects you want to publish.
--configuration, -c <config> DebugSpecify Build Configuration (Release or Debug).
--solution-platform, -p <plateform> AnyCPUSpecify the Solution Platform (e.g. x86, x64, AnyCPU).
--tools-version, -n <version> 15.0Specify the .NET Tools-Version (1.0, 1.1, 2.0, 3.5, 4.0, 12.0, 14.0, 15.0, auto).
--architecture, -a <arch> Auto-detectedSpecify the Architecture (x86, x64).
--verbosity, -v <level> minimalSpecify the amount of information to display in the build output (quiet, minimal, normal, detailed, diagnostic).
--maxcpucount, -m <cpunb> 0Specify Maximal CPU-Count to use. (-1: MSBuild Default, 0: Automatic selection, > 0: Concrete value).
--node-reuse, -r <boolean> trueSpecify whether to enable or disable the re-use of MSBuild nodes (true or false).
--nologo Suppress Startup Banner and Copyright Message of MSBuild.

It also possible to give additional arguments to the msBuild command directly. Just use -- after the command line.

nsc publish --targets Clean,Build -- /noautoresponse
With specific paths
From .nscrc
nsc publish

Note: publishPaths support glob pattern !

Configuration example:

{
  "publishPaths": [
    "<solutionPath>",  // use default solution (Base.sln)
    "<rootDir>/**/*.sln" // publish all solution
  ]
}
From args
nsc publish --paths Base.sln,Other.sln,src/**/code/*.csproj

Note: --paths option support glob pattern !

Publish Foundation/Feature/Project only
nsc publish Foundation

Available options: Foundation, Feature or Project

Contributing

Read our contribution documentation.

License

The MIT License (MIT)

Copyright (c) 2018 NodeSitecore

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

FAQs

Package last updated on 20 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc