0.0.7 • Published 8 years ago
@neudesic/spdeploy v0.0.7
Introduction
A node package wrapper for the OfficePnP Provisioning Framework.
Install
npm install @neudesic/spdeploy --globalExamples
Initialize Settings
inituser can be run multiple time to store urls and credentials for environments.
spdeploy inituser
# Identifier: local-dev (identifier for this setting)
# Site url: https://sometenant.sharepoint.com/sites/thesite
# User: admin@sometenant.onmicrosoft.com (empty for windows auth)
# Password: ****** (empty for windows auth)Get Provisioning Template
Basic:
spdeploy gettemplateGet site provisioning template with options:
spdeploy gettemplate --setting <identifier_from_inituser> --filetype json --handlers Fields ContentTypes FilesApply Provisioning Template
Basic:
spdeploy applytemplate --template spdeploy\path\to\WebTemplate.xmlApplying provisioning template to site with options:
spdeploy applytemplate --setting <identifier_from_inituser> --template spdeploy\path\to\WebTemplate.xml --handlers Pages WebSettingsApply Neudesic Template
Basic:
spdeploy pushWith options:
spdeploy push --setting <identifier_from_inituser> --templates files.json ia.json
spdeploy push --templates files.json --incremental
spdeploy push --templates files.json --since "3/1/2017 12:00 PM"