1. Home
  2. ...
  3. API Platform
  4. Sensedia CLI Declarative Mode

Sensedia CLI Declarative Mode

With Sensedia CLI Declarative Mode, you can manage resources using `.yaml` files instead of typing commands followed by flags or answering the interactive questions.

Overview

With Sensedia CLI Declarative Mode, you can manage resources using .yaml files instead of typing commands followed by flags or answering the interactive questions. Our Declarative Mode focuses more on what you want to achieve than on how. It also means that you can describe the resources you wish to add, update or delete in a single file, which might lead to a faster result. Of course, if you prefer going step by step, just go back to the previous pages. There, we describe how to manage API Platform and Adaptive Governance resources through questions, with the interactive mode, or via flags.

Necessary Commands

Basically, only two commands will be used to support the Declarative Mode:

Usage (How to Structure the Objects)

Processing Documents

  • First of all, Sensedia CLI will check if the file type is .yaml and whether it contains at least one document. Then, using the ssd apply command, the file will be processed according to its own declared order.
  • When the ssd delete command is used, the documents will be processed in the opposite order to the one declared in the file.
NOTE

CLI will report back in case there are errors while processing the files.

However, it will continue processing the input file and performing the other operations. When the flags --fail-fast or -e are informed, CLI will stop running at the first document with an error. The --validate-file flag can be used to validate the file structure for verification purposes only, but without applying any changes to the platform.

When the execution is finished, Sensedia CLI should show a list with the modified resources:

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more