
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@node-sitecore/cli
Advanced tools
A Sitecore cli
$ npm install -g @node-sitecore/cli
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 your solution depending on your configuration or on the given options.
Option | Default value | Description |
---|---|---|
--log-command, -l | false | Logs the msbuild command that will be executed. |
--targets, -t <list> | Build | Specify Build Targets. |
--configuration, -c <config> | Debug | Specify Build Configuration (Release or Debug). |
--solution-platform, -p <plateform> | AnyCPU | Specify the Solution Platform (e.g. x86, x64, AnyCPU). |
--tools-version, -n <version> | 15.0 | Specify 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-detected | Specify the Architecture (x86, x64). |
--verbosity, -v <level> | minimal | Specify the amount of information to display in the build output (quiet, minimal, normal, detailed, diagnostic). |
--maxcpucount, -m <cpunb> | 0 | Specify Maximal CPU-Count to use. (-1 : MSBuild Default, 0 : Automatic selection, > 0 : Concrete value). |
--node-reuse, -r <boolean> | true | Specify 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
.nscrc
nsc build
Note:
buildPaths
support glob pattern !
Configuration example:
{
"buildPaths": [
"<solutionPath>", // use default solution (Base.sln)
"<rootDir>/**/*.sln" // build all solution
]
}
nsc build --paths Base.sln,Other.sln,src/**/code/*.csproj
Note:
--paths
option support glob pattern !
nsc build Foundation
By default build the solution (eg. Base.sln
) and publish it depending on your configuration or on the given options.
Option | Default value | Description |
---|---|---|
--log-command, -l | false | Logs the msbuild command that will be executed. |
--targets, -t <list> | Build | Specify Publish Targets. |
--paths <list> | Base.sln,Other.sln | Specify the solutions or projects you want to publish. |
--configuration, -c <config> | Debug | Specify Build Configuration (Release or Debug). |
--solution-platform, -p <plateform> | AnyCPU | Specify the Solution Platform (e.g. x86, x64, AnyCPU). |
--tools-version, -n <version> | 15.0 | Specify 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-detected | Specify the Architecture (x86, x64). |
--verbosity, -v <level> | minimal | Specify the amount of information to display in the build output (quiet, minimal, normal, detailed, diagnostic). |
--maxcpucount, -m <cpunb> | 0 | Specify Maximal CPU-Count to use. (-1 : MSBuild Default, 0 : Automatic selection, > 0 : Concrete value). |
--node-reuse, -r <boolean> | true | Specify 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
.nscrc
nsc publish
Note:
publishPaths
support glob pattern !
Configuration example:
{
"publishPaths": [
"<solutionPath>", // use default solution (Base.sln)
"<rootDir>/**/*.sln" // publish all solution
]
}
nsc publish --paths Base.sln,Other.sln,src/**/code/*.csproj
Note:
--paths
option support glob pattern !
nsc publish Foundation
Available options:
Foundation
,Feature
orProject
Read our contribution documentation.
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
A node Sitecore cli
The npm package @node-sitecore/cli receives a total of 69 weekly downloads. As such, @node-sitecore/cli popularity was classified as not popular.
We found that @node-sitecore/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.