Skip to content

New command: get information about the specified file #282

Description

@waldekmastykarz

Get information about the specified file

  • command: spo file get -w|--webUrl <webUrl> -u|--url [url] -i|--id [id] --asString --asListItem --asFile -p|--path [path]
  • webUrl: The URL of the site where the file is located
  • url: server- or site-relative URL of the file
  • id: file ID
  • asString: retrieve the contents of the specified file
  • asListItem: retrieve the underlying list item
  • asFile: save the file to the path specified in the path option
  • path: path where to save the file. Must be specified when the --asFile option is used
  • either url or id must be specified to retrieve the file, but not both
  • if the asString and asListItem properties are not specified, retrieves the properties of the file object
  • requires connection to a SharePoint site

For more information see the Get-PnPFile cmdlet

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions