README.md
1# Google Cloud Storage Code Samples
2
3This directory contains code snippets showing how to use the Google Cloud
4Storage APIs. These snippets are referenced from the Doxygen documentation.
5
6## Compiling the Samples
7
8These examples are compiled as part of the build for the Google Cloud C++
9Libraries. The instructions on how to compile the code are in the
10[top-level README](../../../../README.md) file.
11
12## Running the Samples
13
14Follow the
15[instructions](https://cloud.google.com/storage/docs/quickstart-gsutil)
16to create a project, enable billing, and create a bucket using the `gsutil`
17command-line tool.
18
19Then you can get the metadata for a bucket using:
20
21```bash
22./storage_bucket_samples get-metadata gcp-public-data-landsat
23```
24