﻿---
title: cloud serverless projects search reset-credentials cli command
description: Reset the project credentials Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4089/reference/elastic-cli/cli/cloud/serverless/projects/search/reset-credentials
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# cloud serverless projects search reset-credentials cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic cloud serverless projects search reset-credentials --id <id> [options]
```

Reset the project credentials
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--id string required">
    The ID of the project
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
  <definition term="--yes">
    confirm destructive action without prompting
  </definition>
  <definition term="--save-as string">
    store returned credentials in the OS keychain and upsert a context of this name
  </definition>
  <definition term="--credentials-file string">
    write credentials to a standalone YAML config fragment at this path (0600)
  </definition>
  <definition term="--config-file string">
    override the config file written by --save-as (defaults to ~/.elasticrc.yml)
  </definition>
  <definition term="--force">
    overwrite an existing context (--save-as) or file (--credentials-file)
  </definition>
  <definition term="--show-credentials">
    print credentials in plain text (default: redacted)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>