nerdexam
Adobe

AD0-E724 · Question #3

Which 'magento-cloud' CLI command would a developer use to get a list of all active and inactive environments in their cloud project?

The correct answer is D. 'magento-cloud environment:list'. magento-cloud environment:list is the correct command for listing all environments (both active and inactive) in a Magento Cloud project, and it supports flags like --all and --no-inactive to filter results. Option A (env:status --all) is incorrect because env:status checks the s

Administering

Question

Which 'magento-cloud' CLI command would a developer use to get a list of all active and inactive environments in their cloud project?

Options

  • A'magento-cloud env:status --all'
  • B'magento-cloud project:environments'
  • C'magento-cloud branch:list'
  • D'magento-cloud environment:list'

How the community answered

(49 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    12% (6)
  • D
    80% (39)

Explanation

magento-cloud environment:list is the correct command for listing all environments (both active and inactive) in a Magento Cloud project, and it supports flags like --all and --no-inactive to filter results. Option A (env:status --all) is incorrect because env:status checks the status of a single specific environment, not a list of all environments. Option B (project:environments) is not a valid magento-cloud CLI command - the CLI uses environment:* namespacing, not project:environments. Option C (branch:list) does not exist in the magento-cloud CLI; branches are surfaced through environment commands, not a dedicated branch namespace.

Memory tip: Think "I want to list my environments" - the command follows that exact word order: environment:list. When in doubt, the magento-cloud CLI is very literal; the noun comes first, then the verb.

Topics

#magento-cloud CLI#environment management#cloud environments

Community Discussion

No community discussion yet for this question.

Full AD0-E724 Practice