Akumina Developer Documentation

Akumina Developer Documentation

  • API
  • Docs
  • Blog

Version 4.5

Download

Please see the release section for downloading the Site Deployer assets

ChangeList

[4.5.2001.0801] - 01.13.20

  • Added multideployment option - deploy steps to multiple site collections with 1 command
  • Added support for setting custom welcome page URL
  • Custom layouts are settable via virtualpage step
  • Support ONPREM u/p authentication formats

[4.5.1909.1301] - 09.17.19

  • Added support for the new 'akumina-virtualpage-builder' and the new virtual page .JSON format
    https://akumina.github.io/docs/AK-Virtual-Page-Builder.html

[4.5.1907.2901] - 07.29.19

  • Added support for 'layoutfolder' attribute when adding classic pages with a layout in a folder different than AssetDirectory -JA
  • SetSiteProperties step added 'siteproperties' - SK
  • ReferenceListId updates - SK
  • OfficeDevPnP.Core.dll updated to 3.6.1902.0 - JA

Install

npm install

Command line parameters are set in .env

argumentdescriptionexample
versionShows the Site deployer version
envdirPath to location that contains SiteDefinitions directory - should have trailing slashC:\TEMP\
assetdirectoryDirectory name in SiteDefinitions directoryMyClient (Looks in envdir\SiteDefinitions\MyClient)
optionsComma deliminted list of options - see belowjs,widgets
mlPopulate AkId,AkLanguageId,AkLanguageCode columnstrue or false
langidLanguage Id1033
spdirectoryFolder in Sharepoint Style Library where bits gets deployedDigitalWorkplace
spUrlSharepoint site collectionhttps://tenant.sharepoint.com/sites/mysitecollection
spUserSharepoint usernamemyusername@tenant.onmicrosoft.com
spPasswordSharepoint password12345
clientidSharepoint app client idguid
clientsecretSharepoint app client secret
azurestorageaccountnameAzure Storage account name
azurestoragecontainerAzure Storage blob container name
azurestorageaccountkeyAzure Storage account key
cdnprefixreplaces {{CDNPrefix}} token in Master page with this value
multideploymentDeploys the currently selected option to each site defined in inventory.sites.json

Minimum usage with username|password

Akumina.SiteDeployer.exe options "js" spUser "myusername@tenant.onmicrosoft.com" spPassword "mypassword" spUrl "https://tenant.sharepoint.com/sites/mysitecollection" envdir "C:\TEMP\\" assetdirectory "MyClient" spdirectory "DigitalWorkplace"

Minimum usage with clientid|clientsecret

Akumina.SiteDeployer.exe options "js" spUrl "https://tenant.sharepoint.com/sites/mysitecollection" clientid "myclientid" clientsecret "myclientsecret" envdir "C:\TEMP\\" assetdirectory "MyClient" spdirectory "DigitalWorkplace"

Usage

node ./deploy.js OR npm run deploy

Set options to true/false in akumina.sitedeployer.config.json:

optionDescription
masterpageDeploys contents of envdir/sitedefinitions/assetdirectory/MasterPages (classic sites)
jsDeploys contents of envdir/sitedefinitions/assetdirectory/branding/js
cssDeploys contents of envdir/sitedefinitions/assetdirectory/branding/css
listsDeploys lists based on envdir/sitedefinitions/assetdirectory/ListDefinitions/Lists.xml
layoutsDeploys new page layouts from envdir/sitedefinitions/assetdirectory/PageLayouts/Elements.xml
pagesDeploys new .aspx pages from envdir/sitedefinitions/assetdirectory/Pages/Elements.xml
addtermsetsDeploys termsets based on envdir/sitedefinitions/assetdirectory/Taxonomy/terms.xml
controlsDeploys widgets onto pages from envdir/sitedefinitions/assetdirectory/PageContent/pages.xml
widgetsDeploys widget packages from envdir/sitedefinitions/assetdirectory/WidgetPackages/*.zip
contentfilesDeploys contents of envdir/sitedefinitions/assetdirectory/branding/content
imagefilesDeploys contents of envdir/sitedefinitions/assetdirectory/branding/imgimages
updatelistsDeploys list content based on envdir/sitedefinitions/assetdirectory/ListDefinitions/Update.xml
homepageSets default home page for the site collection to Pages/home.aspx unless envdir/sitedefinitions/assetdirectory/homepage/Elements.json exists
fontsDeploys contents of envdir/sitedefinitions/assetdirectory/branding/fonts
exportlistsReads 'exportLists' key from app.config - will export configured lists
uploadfilesDeploys contents of envdir/sitedefinitions/assetdirectory/UploadFiles
webpartgallery
groupsDeploys Sharepoint Security Groups from envdir/sitedefinitions/assetdirectory/SecurityGroups/groups.xml
sitepropertiesDeploys contents of envdir/sitedefinitions/assetdirectory/SiteProperties/properties.xml
virtualpagesDeploys contents of envdir/sitedefinitions/assetdirectory/VirtualPages - see https://akumina.github.io/docs/AK-Virtual-Page-Builder.html

NOTE - deploy.js process from 4.1 is compatible with 4.5, just swap out the 4.5 deploy.js with 4.1

Nuances

Multideployment

As mentioned, the multideployment option in the .env will run 'npm run deploy' for each site listed in the inventory.sites.json file.

inventory.sites.json is located in the MultiDeployments folder under SiteDefinitions:

root\build\SiteDefinitions\ClientNamespace\MultiDeployment\inventory.sites.json

[
    {
        "url": "https://tenant.sharepoint.com/sites/1"
    },
    {
        "url": "https://tenant.sharepoint.com/sites/2"
    }
]
  • Download
    • [4.5.2001.0801] - 01.13.20
    • [4.5.1909.1301] - 09.17.19
    • [4.5.1907.2901] - 07.29.19
    • Nuances
  • Multideployment
Akumina Developer Documentation
Docs
Akumina Framework 5.0Akumina Widget BuilderAkumina Yeoman GeneratorSite Deployer
Community
Akumina Community Site
More
GitHubStar
Copyright © 2024 Akumina