---
title: temporary-volume-credentials command group
description: Learn how to use the Databricks CLI temporary-volume-credentials commands
canonical_url: https://docs.databricks.com/gcp/en/dev-tools/cli/reference/temporary-volume-credentials-commands
---

# `temporary-volume-credentials` command group

> [!NOTE]
>
> Databricks CLI use is subject to the [Databricks License](https://github.com/databricks/cli?tab=License-1-ov-file#readme) and [Databricks Privacy Notice](https://www.databricks.com/legal/privacynotice), including any Usage Data provisions.

> [!NOTE]
> **Preview**
>
> This feature is in [Public Preview](https://docs.databricks.com/gcp/en/release-notes/release-types.md).

The `temporary-volume-credentials` command group within the [Databricks CLI](https://docs.databricks.com/gcp/en/dev-tools/cli/index.md) manages temporary volume credentials for accessing cloud storage locations where volume data is stored in Databricks. These credentials provide secure and time-limited access to data in cloud environments such as AWS, Azure, and Google Cloud. Each cloud provider has its own type of credentials: AWS uses temporary session tokens through AWS Security Token Service (STS), Azure uses Shared Access Signatures (SAS) for its data storage services, and Google Cloud supports temporary credentials through OAuth 2.0.

## databricks temporary-volume-credentials generate-temporary-volume-credentials

Generate a temporary volume credential.

Get a short-lived credential for directly accessing the volume data on cloud storage. The metastore must have **external\_access\_enabled** flag set to true (default false). The caller must have the **EXTERNAL\_USE\_SCHEMA** privilege on the parent schema and this privilege can only be granted by catalog owners.

```
databricks temporary-volume-credentials generate-temporary-volume-credentials [flags]
```

#### Options

**`--json JSON`**

    The inline JSON string or the @path to the JSON file with the request body.

**`--operation VolumeOperation`**

    The operation performed against the volume data, either READ\_VOLUME or WRITE\_VOLUME. Supported values: \[READ\_VOLUME, WRITE\_VOLUME]

**`--volume-id string`**

    Id of the volume to read or write.

[Global flags](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/temporary-volume-credentials-commands.md#global-flags)

## <a id="global-flags" />Global flags

**`--debug`**

  Whether to enable debug logging.

**`-h` or `--help`**

    Display help for the Databricks CLI or the related command group or the related command.

**`--log-file` string**

    A string representing the file to write output logs to. If this flag is not specified then the default is to write output logs to stderr.

**`--log-format` format**

    The log format type, `text` or `json`. The default value is `text`.

**`--log-level` string**

    A string representing the log format level. If not specified then the log format level is disabled.

**`-o, --output` type**

    The command output type, `text` or `json`. The default value is `text`.

**`-p, --profile` string**

    The name of the profile in the `~/.databrickscfg` file to use to run the command. If this flag is not specified then if it exists, the profile named `DEFAULT` is used.

**`--progress-format` format**

    The format to display progress logs: `default`, `append`, `inplace`, or `json`

**`-t, --target` string**

    If applicable, the bundle target to use
