incus query

Send a raw query to the server

Synopsis

Description
Send a raw query to the server



incus query [<remote>:]<API path> [flags]

Examples

  incus query -X DELETE --wait /1.0/instances/c1
      Delete local instance "c1".

  incus query -X POST --data-file ./f.txt -H "X-Incus-type: file" -H "X-Incus-mode: 0600" /1.0/instances/c1/files?path=/root/f.txt
      Upload a file to local instance "c1".

Options

  -d, --data                Input data
      --data-file           Input data file ("-" for stdin)
  -H, --header              Header to set, an empty value removes it (e.g. "X-Incus-mode: 0644") (may be passed multiple times)
      --raw[=true|false]    Print the raw response
  -X, --request             Action (default "GET")
      --wait[=true|false]   Wait for the operation to complete

Options inherited from parent commands

      --debug[=true|false]          Show all debug messages
      --explain[=true|false]        If the command is valid, explain its parsed arguments instead of running it
      --force-local[=true|false]    Force using the local unix socket
  -h, --help[=true|false]           Print help
      --project                     Override the source project
  -q, --quiet[=true|false]          Don't show progress information
      --sub-commands[=true|false]   Use with help or --help to view sub-commands
  -v, --verbose[=true|false]        Show all information messages
      --version[=true|false]        Print version number

SEE ALSO

  • incus - Command line client for Incus