Skip to content

Commit

Permalink
Adds documentation about option values starting with a dash. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
nanddeepn authored and waldekmastykarz committed Dec 22, 2022
1 parent d955fbf commit 78a2a58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/docs/user-guide/using-cli.md
Expand Up @@ -49,6 +49,14 @@ When the value, that you want to provide contains quotes, it needs to be wrapped
m365 spo sitescript add --title "Contoso" --description "Contoso theme script" --content '{"abc": "def"}'
```

## Values starting with a dash (-)

In cases, when the option's value starts with a dash (-), specify the option's value using the `=` operator. For example, to get a planner task with ID _-9rMKQooUjZdxgv1qQVZYABEuw_, execute in the shell:

```sh
m365 planner task get --id=-9rMKQooUjZdxgv1qQVZYABEuw
```

## Working with SharePoint URLs in `spo` commands

CLI for Microsoft 365 contains a number of commands for managing SharePoint Online. Each of these commands requires you to specify the site or web on which you want to execute the command. For example, to get information about a site collection located at `https://contoso.sharepoint.com/sites/contoso`, you'd execute:
Expand Down

0 comments on commit 78a2a58

Please sign in to comment.