Skip to content

bcdock env wait

bcdock env wait

Block until an environment reaches one of the requested states

Synopsis

Wait for an environment to reach a desired status, polling every 3 seconds.

Multiple --status values are OR-ed: the command exits 0 as soon as the env reaches any one of them.

Exit codes: 0 one of --status values reached 5 environment not found 124 timeout elapsed without reaching any requested state

bcdock env wait <name|shortId> [flags]

Examples

  bcdock env wait my-env --status running --timeout 30m
  bcdock env wait my-env --status running --status failed --timeout 30m

Options

  -h, --help                 help for wait
      --status stringArray   Status to wait for (repeatable: running, failed, hibernated, deleted, ...)
      --timeout duration     Max time to wait (default 30m0s)

Options inherited from parent commands

      --api-url string   API base URL (env: BCDOCK_API_URL)
      --no-color         Disable colored output
  -o, --output string    Output format: table, json, csv (default "table")
  -q, --quiet            Suppress non-essential output
      --token string     API token (env: BCDOCK_TOKEN)

SEE ALSO

  • bcdock env - Manage Business Central environments