vultr/vultr-cli

Can't create bare metal instance

andrewrynhard opened this issue · 2 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Get a bare metal plan:

vultr-cli plans metal list

Deploy an instance using the plan ID:

vultr-cli \
                            instance create \
                            --notify \
                            --region ewr \
                            --plan vbm-8c-132gb \
                            --os 159 \
                            --script-id <ID> \
                            --host example
error creating instance : {"error":"Invalid plan chosen.","status":400}

Expected behavior
Instance created.

Desktop (please complete the following information where applicable:

  • OS: macOS
  • Version Vultr-cli v2.21.0

@andrewrynhard it looks like you're on the instance command which only is relevant to virtual servers. For bare metal, you'll want to use the bare-metal command instead.

vultr-cli bare-metal --help                                                                                                                                                                                                                                                                14:10
Show all commands available to bare-metal

Usage:
  vultr-cli bare-metal [command]

Aliases:
  bare-metal, bm

Examples:

        # Full example
        vultr-cli bare-metal


Available Commands:
  app         app is used to access bare metal server application commands
  bandwidth   Get a bare metal server's bandwidth usage
  create      create a bare metal server
  delete      Delete a bare metal server
  get         Get a bare metal server by <bareMetalID>
  halt        Halt a bare metal server.
  image       image is used to access bare metal server image commands
  ipv4        List the IPv4 information of a bare metal server.
  ipv6        List the IPv6 information of a bare metal server.
  list        List all bare metal servers.
  os          os is used to access bare metal server operating system commands
  reboot      Reboot a bare metal server. This is a hard reboot, which means that the server is powered off, then back on.
  reinstall   Reinstall the operating system on a bare metal server.
  start       Start a bare metal server.
  tags        Add or modify tags on the bare metal server.
  user-data   user-data is used to access bare metal server user-data commands
  vnc         Get a bare metal server's VNC url by <bareMetalID>
  vpc2        commands to handle vpc 2.0 on a server

Flags:
  -h, --help   help for bare-metal

Global Flags:
      --config string   config file (default is $HOME/.vultr-cli.yaml) (default "/home/michael/.vultr-cli.yaml")

Use "vultr-cli bare-metal [command] --help" for more information about a command.

Ah ha! Thanks!