https://github.com/bsorrentino/officescripts-cli
CLI for manage Office Script (OSTS) files
https://github.com/bsorrentino/officescripts-cli
cli office-scripts office365-cli typescript
Last synced: 6 months ago
JSON representation
CLI for manage Office Script (OSTS) files
- Host: GitHub
- URL: https://github.com/bsorrentino/officescripts-cli
- Owner: bsorrentino
- License: mit
- Created: 2021-10-29T09:16:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T18:16:46.000Z (over 1 year ago)
- Last Synced: 2025-04-08T08:12:17.742Z (6 months ago)
- Topics: cli, office-scripts, office365-cli, typescript
- Language: TypeScript
- Homepage:
- Size: 211 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/@bsorrentino/osts-cli)
![]()
![]()
![]()
# OfficeScripts-CLI
CLI for manage OSTS files## Prerequisites
Install [CLI for Microsoft 365](https://pnp.github.io/cli-microsoft365/)
>
> ```
> npm i -g @pnp/cli-microsoft365
> ```
>
> or using yarn:
>
> ```
> yarn global add @pnp/cli-microsoft365
> ```login on Office365
>
> ```
> m365 login
> ```## Install
```
npm install -g @bsorrentino/osts-cli
```## Usage
```
Usage:
========
osts list[--path] // list OSTS packages in SPO path.osts unpack [--path, -p [--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 dirosts pack [--path, -p ] [--file, -f ] // bundle source (.ts) in src dir (default 'osts') to OSTS package and upload it
osts dts [--path, -p ] // an Office Script Simplified TS Declaration file is copied in dest dir
```