Skip to content

Commit

Permalink
Document dbt init --adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Sep 3, 2020
1 parent 0324d9a commit cd4567f
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion website/docs/reference/commands/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,47 @@ id: "init"

- creates a `~/.dbt/profiles.yml` file if one does not already exist
- creates a new folder called `[project_name]`
- generates directories and sample files necessary to get started with dbt
- generates directories and sample files necessary to get started with dbt

### Adapter-specific profile
<Changelog>New in v0.18.0</Changelog>

You may optionally specify an `--adapter`. If you do, dbt will create `~/.dbt/profiles.yml`
(if one does not already exist) in accordance with the intended adapter type.

```bash
dbt init [project_name] --adapter bigquery
```

<File name='~/.dbt/profiles.yml'>

```yml
default:
outputs:

dev:
type: bigquery
method: oauth
project: [GCP project id]
dataset: [the name of your dbt dataset] # You can also use "schema" here
threads: [1 or more]
timeout_seconds: 300
location: US # Optional, one of US or EU
priority: interactive
retries: 1

prod:
type: bigquery
method: service-account
project: [GCP project id]
dataset: [the name of your dbt dataset]
threads: [1 or more]
keyfile: [/path/to/bigquery/keyfile.json]
timeout_seconds: 300
priority: interactive
retries: 1

target: dev
```
</File>

0 comments on commit cd4567f

Please sign in to comment.