Skip to content

Bug report: / is rejected as a URL when provided through a prompt #4530

@waldekmastykarz

Description

@waldekmastykarz

Description

When you configure CLI to prompt for missing options, run the spo site get command and provide / as the URL, the command files. The same command ran as spo site get -u / works just fine.

Steps to reproduce

# configure CLI to prompt for missing values
m365 cli config set -k prompt -v true
# get site without specifying URL
m365 spo site get
# specify / as the URL value in the prompt

Expected results

Information about the root site collection

Actual results

$ m365 spo site get
Provide values for the following parameters:
? url:  /
Error: / is not a valid SharePoint Online site URL

Diagnostics

No response

CLI for Microsoft 365 version

Latest from main

nodejs version

v16.13.0

Operating system (environment)

macOS

Shell

zsh

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions