| Argument | Description |
|---|---|
| `--pipes-host` | Sets the Turbot Pipes host used when connecting to Turbot Pipes workspaces. See PIPES_HOST for details. |
After you have verified the request, the browser will display a verification code.
Paste the code into the cli and hit enter to complete the login process:
```bash
$ steampipe login
Verify login at https://pipes.turbot.com/login/token?r=tpttr_cdckfake6ap10t9dak0g_3u2k9hfake46g4o4wym7h8hw
Enter verification code: 745278
Login successful for user johnsmyth
```
---
---
title: Steampipe CLI
sidebar_label: Steampipe CLI
---
# Steampipe CLI
## Sub-Commands
| Command | Description
|-|-
| [steampipe completion](/docs/reference/cli/completion)| Generate the autocompletion script for the specified shell
| [steampipe help](/docs/reference/cli/help) | Help about any command
| [steampipe login](/docs/reference/cli/login) | Log in to Steampipe CLoud
| [steampipe plugin](/docs/reference/cli/plugin) | Steampipe plugin management
| [steampipe query](/docs/reference/cli/query) | Execute SQL queries interactively or by argument
| [steampipe service](/docs/reference/cli/service)| Steampipe service management
## Global Flags
| Flag | Description |
|---|---|
| `-h`, `--help` | Help for Steampipe. |
| `--install-dir` | Sets the directory for the Steampipe installation, in which the Steampipe database, plugins, and supporting files can be found. See STEAMPIPE_INSTALL_DIR for details. |
| `--workspace` | Sets the Steampipe workspace profile. If not specified, the `default` workspace will be used if it exists. See STEAMPIPE_WORKSPACE for details. |
| `-v`, `--version` | Display Steampipe version. |
| Flag | Description |
|---|---|
| `--all` | Applies only to `plugin update`, updates ALL installed plugins. |
| `--progress` | Enable or disable progress information. By default, progress information is shown - set `--progress=false` to hide the progress bar. Applies only to `plugin install` and `plugin update`. |
| `--skip-config ` | Applies only to `plugin install`, skip creating the default config file for plugin. |
| Argument | Description |
|---|---|
| `--export string` | Export query output to a file. You may export multiple output formats by entering multiple `--export` arguments. If a file path is specified as an argument, its type will be inferred by the suffix. Supported export formats are `sps` (`snapshot`). |
| `--header string` | Specify whether to include column headers in csv and table output (default `true`). |
| `--help` | Help for `steampipe query.` |
| `--output string` | Select the console output format. Possible values are `line, csv, json, table, snapshot` (default `table) `. |
| `--pipes-host` | Sets the Turbot Pipes host used when connecting to Turbot Pipes workspaces. See PIPES_HOST for details. |
| `--pipes-token` | Sets the Turbot Pipes authentication token used when connecting to Turbot Pipes workspaces. See PIPES_TOKEN for details. |
| `--progress` | Enable or disable progress information. By default, progress information is shown - set `--progress=false` to hide the progress bar. |
| `--query-timeout int` | The query timeout, in seconds. The default is `0` (no timeout). |
| `--search-path strings` | Set a comma-separated list of connections to use as a custom search path for the query session. |
| `--search-path-prefix strings` | Set a comma-separated list of connections to use as a prefix to the current search path for the query session. |
| `--separator string` | A single character to use as a separator string for csv output (defaults to ",") |
| `--share` | Create snapshot in Turbot Pipes with `anyone_with_link` visibility. |
| `--snapshot` | Create snapshot in Turbot Pipes with the default (`workspace`) visibility. |
| `--snapshot-location string` | The location to write snapshots - either a local file path or a Turbot Pipes workspace |
| `--snapshot-tag string=string ` | Specify tags to set on the snapshot. Multiple `--snapshot-tag ` arguments may be passed. |
| `--snapshot-title string=string ` | The title to give a snapshot when uploading to Turbot Pipes. |
| `--timing=string ` | Enable or disable query execution timing: `off` (default), `on`, or `verbose` |
| `--workspace-database` | Sets the database that Steampipe will connect to. This can be `local` (the default) or a remote Turbot Pipes database. See STEAMPIPE_WORKSPACE_DATABASE for details. |
| Argument | Default | Description |
|---|---|---|
| `autocomplete` | `true` | Enable or disable autocomplete in the interactive query shell. |
| `header` | `true` | Enable or disable column headers. CLI: `--header` |
| `multi` | `false` | Enable or disable multiline mode. |
| `output` | `table` | Set output format (`json`, `csv`, `table`, or `line`). CLI: `--output` |
| `separator` | `,` | Set csv output separator. CLI: `--separator` |
| `timing` | `off` | Enable or disable query execution timing: `off`, `on`, or `verbose` CLI: `--timing` |