Skip to content

[cli] Document --no-defaults and --show-secrets for esphome config#6716

Open
jesserockz wants to merge 1 commit into
nextfrom
jesserockz-2026-275
Open

[cli] Document --no-defaults and --show-secrets for esphome config#6716
jesserockz wants to merge 1 commit into
nextfrom
jesserockz-2026-275

Conversation

@jesserockz
Copy link
Copy Markdown
Member

Description

Documents the new --no-defaults flag on esphome config (added in esphome/esphome#16718) and, while at it, the previously-undocumented --show-secrets flag. Both are listed under a new #### Options section in guides/cli.mdx.

--no-defaults makes esphome config emit only the keys the user wrote in YAML, skipping the values that schema validation fills in from defaults. Substitutions, packages, and !extend / !remove are still resolved so the output remains a faithful "user YAML" view.

Related issue (if applicable): fixes

Pull request in esphome with YAML changes (if applicable):

Checklist

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /src/content/docs/components/index.mdx when creating new documents for new components or cookbook.

…onfig

Adds an Options section under the config command listing both flags;
--show-secrets was previously undocumented as well.

Matches esphome/esphome#16718.
Copilot AI review requested due to automatic review settings June 1, 2026 03:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ESPHome CLI documentation to cover two esphome config flags (--no-defaults and --show-secrets) so users can better control config output for sharing, diffing, and debugging.

Changes:

  • Added a new #### Options subsection under the config command.
  • Documented --show-secrets (previously undocumented) and --no-defaults (new flag from esphome/esphome#16718).

#### Options

**`--show-secrets`**
: Show secret values in the output instead of redacting them.
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit 3d102f2
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/6a1cf665de4438000806ee3c
😎 Deploy Preview https://deploy-preview-6716--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants