Skip to content

Commit

Permalink
update toggles
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Jan 24, 2025
1 parent 6400599 commit 95265d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
10 changes: 1 addition & 9 deletions website/docs/docs/cloud/cloud-cli-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,17 +313,9 @@ This alias will allow you to use the <code>dbt-cloud</code> command to invoke th
</DetailsToggle>
<DetailsToggle alt_header="Why am I receiving a `Session occupied` error?">
If you've ran a dbt command and receive a <code>Session occupied</code> error, you can reattach to your existing session with <code>dbt reattach</code> and then press <code>Control-C</code> and choose to cancel the invocation.
</DetailsToggle>
<DetailsToggle alt_header="Why am I receiving a `Stuck session` error when trying to run a new command?">
The Cloud CLI allows only one command that writes to the data warehouse at a time. If you attempt to run multiple write commands simultaneously (for example, `dbt run` and `dbt build`), you will encounter a `stuck session` error. To resolve this, cancel the specific invocation by passing its ID to the cancel command. For more information, refer to [parallel execution](/reference/dbt-commands#parallel-execution).
The dbt Cloud CLI allows only one command that writes to the data warehouse at a time. If you attempt to run multiple write commands simultaneously (for example, `dbt run` and `dbt build`), you will encounter a `stuck session` error. To resolve this, cancel the specific invocation by passing its ID to the cancel command. For more information, refer to [parallel execution](/reference/dbt-commands#parallel-execution).
</DetailsToggle>
Expand Down
10 changes: 5 additions & 5 deletions website/docs/docs/cloud/configure-cloud-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ As a tip, most command-line tools have a `--help` flag to show available command
- `dbt run --help`: Lists the flags available for the `run` command
:::

### Lint SQL files
## Lint SQL files

From the dbt Cloud CLI, you can invoke [SQLFluff](https://sqlfluff.com/) which is a modular and configurable SQL linter that warns you of complex functions, syntax, formatting, and compilation errors. Many of the same flags that you can pass to SQLFluff are available from the dbt Cloud CLI.

Expand Down Expand Up @@ -155,7 +155,7 @@ When running `dbt sqlfluff` from the dbt Cloud CLI, the following are important

## FAQs

<Expandable alt_header="How to create a .dbt directory and move your file">
<DetailsToggle alt_header="How to create a .dbt directory and move your file">

If you've never had a `.dbt` directory, you should perform the following recommended steps to create one. If you already have a `.dbt` directory, move the `dbt_cloud.yml` file into it.

Expand Down Expand Up @@ -196,12 +196,12 @@ move %USERPROFILE%\Downloads\dbt_cloud.yml %USERPROFILE%\.dbt\dbt_cloud.yml

This command moves the `dbt_cloud.yml` from the `Downloads` folder to the `.dbt` folder. If your `dbt_cloud.yml` file is located elsewhere, adjust the path accordingly.

</Expandable>
</DetailsToggle>

<Expandable alt_header="How to skip artifacts from being downloaded">
<DetailsToggle alt_header="How to skip artifacts from being downloaded">

By default, [all artifacts](/reference/artifacts/dbt-artifacts) are downloaded when you execute dbt commands from the dbt Cloud CLI. To skip these files from being downloaded, add `--download-artifacts=false` to the command you want to run. This can help improve run-time performance but might break workflows that depend on assets like the [manifest](/reference/artifacts/manifest-json).

</Expandable>
</DetailsToggle>

<FAQ path="Troubleshooting/long-sessions-cloud-cli" />
2 changes: 2 additions & 0 deletions website/docs/faqs/Troubleshooting/long-sessions-cloud-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ If you're receiving a `Session occupied` error in the dbt Cloud CLI or if you're
To cancel an active session, use the `Ctrl + Z` shortcut.

To learn more about the `dbt invocation` command, see the [dbt invocation command reference](/reference/commands/invocation).

Alternatively, you can reattach to your existing session with <code>dbt reattach</code> and then press <code>Control-C</code> and choose to cancel the invocation.

0 comments on commit 95265d2

Please sign in to comment.