|
| 1 | +<!-- |
| 2 | +Copyright 2026 Columnar Technologies Inc. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +--> |
| 16 | + |
| 17 | +# Private Drivers |
| 18 | + |
| 19 | +{{ since_version('v0.2.0') }} |
| 20 | + |
| 21 | +Most drivers available with dbc are hosted on Columnar's public [driver registry](../concepts/driver_registry.md). However, some of the drivers you see when you run `dbc search` may be marked with a `[private]` label. |
| 22 | + |
| 23 | +To install and use these drivers, you must: |
| 24 | + |
| 25 | +1. Log in to [Columnar Cloud](https://cloud.columnar.tech) with dbc |
| 26 | +2. Start a trial license |
| 27 | + |
| 28 | +Continue reading to learn how to log in and start a trial. |
| 29 | + |
| 30 | +## Logging In |
| 31 | + |
| 32 | +To log into Columnar's private driver registry, run `dbc auth login`. This will automatically create an account for you the first time you log in. |
| 33 | + |
| 34 | +You will see the following in your terminal and your default web browser will be opened: |
| 35 | + |
| 36 | +```console |
| 37 | +$ dbc auth login |
| 38 | +Opening https://auth.columnar.tech/activate?user_code=XXXX-XXXX in your default web browser... |
| 39 | +⠏ Waiting for confirmation... |
| 40 | +``` |
| 41 | + |
| 42 | +In your browser, you will see a **Device Confirmation** prompt and, once you click **Confirm**, you will be redirected to log in with the provider of your choice. Once you log in, you will be redirected to [Columnar Cloud](https://cloud.columnar.tech/). Keep the tab open and continue on to the next step. |
| 43 | + |
| 44 | +## Starting a Trial |
| 45 | + |
| 46 | +To install and use a private driver, you must start a trial and obtain a license. This is a separate step from logging in. |
| 47 | + |
| 48 | +Licenses can be obtained from your [Account](https://cloud.columnar.tech/account) page on Columnar Cloud by clicking **Start Free 14-Day Trial**. Follow any instructions in the dialog that opens up and click **Accept** to create your license. |
| 49 | + |
| 50 | +### Downloading Your License |
| 51 | + |
| 52 | +dbc will automatically download your license if you: |
| 53 | + |
| 54 | +1. Have an active license |
| 55 | +2. Run `dbc install` with a private driver |
| 56 | + |
| 57 | +If you'd prefer to download the license manually, you can click **Download License File** and place the downloaded file in the appropriate location for your operating system: |
| 58 | + |
| 59 | +- Windows: `%LocalAppData%/dbc/credentials` |
| 60 | +- macOS: `~/Library/Application Support/Columnar/dbc/credentials` |
| 61 | +- Linux: `~/.local/share/dbc/credentials` |
| 62 | + |
| 63 | +You may also use a custom location by setting the environment variable `XDG_DATA_HOME` to an absolute path of your choosing. If you do this, you must ensure you set the same value of `XDG_DATA_HOME` when loading drivers with the [driver manager](../concepts/driver_manager.md) for the drivers to find your license. |
| 64 | + |
| 65 | +## Logging Out |
| 66 | + |
| 67 | +To log out, run `dbc auth logout`. |
| 68 | + |
| 69 | +By default, the `logout` command doesn't purge any driver licenses from your system and only removes your login credentials. If you wish remove the local copy of your license run: |
| 70 | + |
| 71 | +```console |
| 72 | +$ dbc auth logout --purge |
| 73 | +``` |
| 74 | + |
| 75 | +!!! note |
| 76 | + |
| 77 | + Note that this command only removes the local copy of your license and does not cancel any active licenses you may have in your [Columnar Cloud](https://cloud.columnar.tech) account. |
| 78 | + |
| 79 | +!!! warning |
| 80 | + |
| 81 | + ADBC drivers that require a license (i.e., private drivers) will stop working after you run this command. You can re-download your license with `dbc auth login`. See [Downloading Your License](#downloading-your-license). |
| 82 | + |
| 83 | + |
| 84 | +## API Keys |
| 85 | + |
| 86 | +dbc also supports logging in to private driver registries via API key. This is primarily intended for use in [Continuous Integration](https://en.wikipedia.org/wiki/Continuous_integration) systems or any system where logging in with a web browser is not possible. |
| 87 | + |
| 88 | +To create an API key, open a web browser to your [API keys](https://cloud.columnar.tech/apikeys) page. |
| 89 | + |
| 90 | +!!! note inline end |
| 91 | + |
| 92 | + If you've already created an API key, you will see a **Create API Key** button instead. |
| 93 | + |
| 94 | +If you haven't created any API keys before, you will see a **Create Your First API Key** button. After clicking it, enter a name, optionally choose an expiration, and click **Create**. On the following screen, you will see your new API key and instructions to copy it to your clipboard. |
| 95 | + |
| 96 | +!!! note |
| 97 | + |
| 98 | + API keys grant full access to your account so be sure to store it in a secure way. |
| 99 | + |
| 100 | + |
| 101 | +Then to use your API key to log in, run: |
| 102 | + |
| 103 | +```console |
| 104 | +$ dbc auth login --api-key "<YOUR_API_KEY_HERE>" |
| 105 | +``` |
| 106 | + |
| 107 | +Once you've run this successfully, dbc is now logged in and you can install private drivers as you would normally. |
0 commit comments