Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.63 KB

File metadata and controls

71 lines (47 loc) · 1.63 KB

Google Cloud Platform logo

Google Cloud Storage Node.js Samples

Cloud Storage allows world-wide storage and retrieval of any amount of data at any time.

Table of Contents

Setup

  1. Read Prerequisites and How to run a sample first.

  2. Install dependencies:

     npm install
    

Samples

Buckets

View the documentation or the source code.

Usage: node buckets --help

Usage: node buckets [COMMAND] [ARGS...]

Commands:

  create [BUCKET_NAME]
  list
  delete [BUCKET_NAME]

Files

View the documentation or the source code.

Usage: node files --help

Usage: node files [COMMAND] [ARGS...]

Commands:

  list [BUCKET_NAME]
  listByPrefix [BUCKET_NAME] [PREFIX] [DELIMITER]
  upload [BUCKET_NAME] [FILE_NAME]
  download [BUCKET_NAME] [SRC_FILE_NAME] [DEST_FILE_NAME]
  delete [BUCKET_NAME] [FILE_NAME]
  getMetadata [BUCKET_NAME] [FILE_NAME]
  makePublic [BUCKET_NAME] [FILE_NAME]
  move [BUCKET_NAME] [SRC_FILE_NAME] [DEST_FILE_NAME]
  copy [BUCKET_NAME] [SRC_FILE_NAME] [DEST_BUCKET_NAME] [DEST_FILE_NAME]