Skip to content

cub target get

cub target get

Get details about a target

Synopsis

Get detailed information about a target in a space including its ID, slug, and configuration.

Examples:

  # Get details about a target
  cub target get --space my-space --json my-target

  # Wait for target to be created (e.g., by a worker registering)
  cub target get --space my-space --wait my-target
cub target get <slug or id> [flags]

Options

  -h, --help             help for get
      --jq string        jq expression, suppressing default output
      --json             JSON output, suppressing default output
      --quiet            No default output.
      --select string    Comma-separated list of fields to retrieve and display. Entity IDs and Slug are always included. Example: "DisplayName,CreatedAt,Labels"
      --timeout string   creation timeout as a duration with units, such as 10s or 2m (default "30s")
      --verbose          Detailed output, additive with default output
      --wait             wait for resource to be created
      --yaml             YAML output, suppressing default output
      --yq string        yq expression, suppressing default output

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output
      --space string     space ID to perform command on

SEE ALSO