Skip to content

How do you turn off auto-delete for primary-ip with cli? #984

Closed

Description

@einarpersson

Hi,

I cant figure out how to turn off auto-delete of a primary ip. I could not discover it with the --help flag. i found something under hcloud primary-ip update that related to that setting but i couldn't turn it off by omitting the flag.

Thanks

Activity

  1. jooola commented on Feb 14, 2025

    @jooola
    Member

    Using the latest version of the CLI, you should be able to run the following:

    hcloud primary-ip update <name-or-id> --auto-delete=<true|false>
  2. einarpersson commented on Feb 14, 2025

    @einarpersson
    Author

    Ok, looks good. But I would suggest to add some kind of bool hint <true|false> to the cli help

    Update a Primary IP
    
    Usage:
      hcloud primary-ip update [options] <primary-ip>
    
    Flags:
          --auto-delete   Delete this Primary IP when the resource it is assigned to is deleted
      -h, --help          help for update
          --name string   Primary IP name
    
  3. github-actions commented on May 15, 2025

    @github-actions
    Contributor

    This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

  4. jooola commented on May 21, 2025

    @jooola
    Member

    @phm07 Is there a way to improve the help pages as @einarpersson suggested?

  5. phm07 commented on May 23, 2025

    @phm07
    Contributor

    Yes, we could add (true, false) to the short text for bool options to make clear that they are booleans

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions