2.3.2 • Published 5 days ago

office-addin-dev-settings v2.3.2

Weekly downloads
4,648
License
MIT
Repository
github
Last release
5 days ago

Office-Addin-Dev-Settings

Provides the ability to configure developer settings for Office Add-ins.

Command-Line Interface

appcontainer

Display or configure settings related to the appcontainer for an Office Add-in.

Syntax:

office-addin-dev-settings appcontainer <manifest> [options]

manifest: path to manifest file.

Without options, displays the appcontainer name.

Notes:

  • Without options, displays the appcontainer name and whether access to localhost is allowed.
  • The appcontainer must be registered in order to allow access to loopback addresses.

Options:

--loopback

Allow access to loopback addresses such as localhost.

--prevent-loopback

Prevent access to loopback addresses such as localhost.

clear

Clear developer settings for the Office Add-in.

Syntax:

office-addin-debugging clear <manifest>

manifest: path to manifest file.

debugging

Display or configure debugging settings for an Office Add-in.

Syntax:

office-addin-dev-settings debugging <manifest> [options]

manifest: path to manifest file.

Without options, displays whether debugging is enabled.

Notes:

These settings do not apply when the Office Add-in runs in a web browser or WebView control.

Options:

--disable

Disable debugging for the Office Add-in.

--enable

Enable debugging for the Office Add-in.

--debug-method <method>

Specifies which debug method to use:

  • direct: debug directly using the JavaScript engine.
  • web: debug using the JavaScript engine in a web browser or Node.

live-reload

Display or configure settings related to live reload for an Office Add-in.

Syntax:

office-addin-dev-settings live-reload <manifest> [options]

manifest: path to manifest file.

Without options, displays whether live reload is enabled.

Options:

--disable

Disable live-reload for the Office Add-in.

--enable

Enable live-reload for the Office Add-in.

m365-account

Logs in or out of the m365 account used to sideload json manifests

Syntax:

office-addin-dev-settings m365-account <operation>

operation: 'login' or 'logout'

register

Registers an Office Add-in for development.

Syntax:

office-addin-dev-settings register <manifest> [options]

manifest: path to manifest file.

registered

Displays the Office Add-ins registered for development.

Syntax:

office-addin-dev-settings registered [options]

runtime-log

Use the command to enable or disable writing any Office Add-in runtime events to a log file. Without options, it displays whether runtime logging is enabled.

Notes:

The setting is not specific to a particular Office Add-in. It applies to the runtime and will show information for all Office Add-ins.

Syntax:

office-addin-dev-settings runtime-log [options]

Without options, displays whether runtime logging is enabled and the log file path (if enabled).

Options:

--disable

Disable runtime logging.

--enable [path]

Enable runtime logging.

  • path: Specify the path to the log file. If not specified, uses "OfficeAddins.log.txt" in the TEMP folder.

sideload

Start Office and open a document so the Office Add-in is loaded.

Syntax:

office-addin-dev-settings sideload <manifest> [app-type] [options]

manifest: path to manifest file.

app-type: host application type to sideload ("desktop" or "web").

Note:

If the add-in supports more than one Office app and the app-type is "desktop", the command will prompt to choose the app unless the --app parameter is provided.

Options:

-a --app

Specify the Office application to load.

-d --document

Specify the document to sideload. The document option can either be the local path to a document or a url.

source-bundle-url

Configure the url used to obtain the source bundle from the packager for an Office Add-in.

The url is composed as:

http://HOST:PORT/PATH EXTENSION

  • HOST: host name; default is localhost
  • PORT: port number; default is 8081
  • PATH: path
  • EXTENSION: extension (including period); default is .bundle

Syntax:

office-addin-dev-settings source-bundle-url [options]

Without options, displays the current source-bundle-url settings.

Options:

-h <name> --host <name>

Specify the host name or "" to use the default.

-p <number> --port <number>

Specify the port number (0 to 65535) or "" to use the default.

--path <path>

Specify the path or "" to use the default.

-e <string> --extension <string>

Specify the extension (which should start with a period) or "" to use the default.

unregister

Unregisters an Office Add-in for development.

Syntax:

office-addin-dev-settings register <manifest> [options]

manifest: path to manifest file.

webview

Switches the webview runtime in Office for testing and development scenarios.

Office must be running on the Beta channel to switch runtimes

Syntax:

office-addin-dev-settings webview <manifest> <web-view-type>

manifest: path to manifest file.

web-view-type: Office webview to load ('edge' or 'edge-chromium, 'edge-legacy', 'ie', or 'default').

2.3.2

5 days ago

2.3.1

16 days ago

2.3.0

26 days ago

2.2.3

2 months ago

2.2.2

3 months ago

2.2.1

4 months ago

2.2.0

6 months ago

2.1.0

6 months ago

2.0.5

12 months ago

2.0.7

10 months ago

2.0.6

11 months ago

2.0.8

10 months ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.15.1

1 year ago

1.14.4

1 year ago

1.14.3

2 years ago

1.15.0

1 year ago

1.14.1

2 years ago

1.14.0

2 years ago

1.14.2

2 years ago

1.13.0

2 years ago

1.11.4

2 years ago

1.11.3

2 years ago

1.12.1

2 years ago

1.12.0

2 years ago

1.11.0

2 years ago

1.11.2

2 years ago

1.11.1

2 years ago

1.10.8

2 years ago

1.10.7

2 years ago

1.10.6

2 years ago

1.10.5

2 years ago

1.10.4

2 years ago

1.10.3

3 years ago

1.10.2

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.25

3 years ago

1.8.26

3 years ago

1.8.24

3 years ago

1.8.22

3 years ago

1.8.21

3 years ago

1.8.20

3 years ago

1.8.19

3 years ago

1.8.18

3 years ago

1.8.17

3 years ago

1.8.16

3 years ago

1.8.15

3 years ago

1.8.13

3 years ago

1.8.12

3 years ago

1.8.11

3 years ago

1.8.10

3 years ago

1.8.9

3 years ago

1.8.8

4 years ago

1.8.7

4 years ago

1.8.6

4 years ago

1.8.5

4 years ago

1.8.4

4 years ago

1.8.3

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.24

4 years ago

1.7.23

4 years ago

1.7.22

4 years ago

1.7.21

4 years ago

1.7.20

4 years ago

1.7.19

4 years ago

1.7.18

4 years ago

1.7.16

5 years ago

1.7.15

5 years ago

1.7.14

5 years ago

1.7.12

5 years ago

1.7.11

5 years ago

1.7.10

5 years ago

1.7.9

5 years ago

1.7.8

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.10

5 years ago

1.6.9

5 years ago

1.6.8

5 years ago

1.6.7

5 years ago

1.6.6

5 years ago

1.6.5

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.8

5 years ago

1.4.7

5 years ago

1.4.6

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.4.1-alpha.0

5 years ago

1.4.0-alpha.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

6 years ago