Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 1.65 KB

File metadata and controls

68 lines (41 loc) · 1.65 KB

Google Cloud Platform logo

Google Cloud Storage Transfer API Node.js Samples

Build

Table of Contents

Setup

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

  2. Install dependencies:

    With npm:

    npm install
    

    With yarn:

    yarn install
    

Samples

Storage Transfer API

View the documentation or the source code.

Usage: node transfer.js --help

Commands:
  jobs <cmd> [args]        Run a job command.
  operations <cmd> [args]  Run an operation command.

Options:
  --help  Show help                                                                        [boolean]

Examples:
  node transfer.js jobs --help        Show job commands.
  node transfer.js operations --help  Show operations commands.

For more information, see https://cloud.google.com/storage/transfer

Running the tests

  1. Set the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS environment variables.

  2. Run the tests:

    With npm:

    npm test
    

    With yarn:

    yarn test