CLI for manage OSTS files
Install CLI for Microsoft 365
npm i -g @pnp/cli-microsoft365
or using yarn:
yarn global add @pnp/cli-microsoft365
login on Office365
m365 login
npm install -g @bsorrentino/osts-cli
Usage:
========
osts list[--path] // list OSTS packages in SPO path.
osts unpack [--path, -p <dest dir> [--dts] ] // download OSTS package and extract body (.ts) to dest dir (default 'osts').
// If --dts is specified an Office Script Simplified TS Declaration file will be copied in dest dir
osts pack [--path, -p <src dir>] [--file, -f <osts file name>] // bundle source (.ts) in src dir (default 'osts') to OSTS package and upload it
osts dts [--path, -p <dest dir>] // an Office Script Simplified TS Declaration file is copied in dest dir