An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![npm](https://img.shields.io/npm/v/@bsorrentino/osts-cli.svg)](https://www.npmjs.com/package/@bsorrentino/osts-cli) 
 
 

 
![npm publishing](https://github.com/bsorrentino/OfficeScripts-CLI/actions/workflows/npm-publish.yml/badge.svg)

# 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 dir

osts 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

```