title: BQ command line tool -- how to check if a BigQuery dataset exists before creating it?
body: <p>Using the BigQuery command-line tool, how can I check if a dataset exists before creating it?</p>
  
  <pre><code>bq mk dataset
  </code></pre>
  
  <p>reports an error if you try to call it on an already existing dataset.</p>