Adding & removing components

Adding and removing a component are operation that can be performed on a service. The syntax for the same withing odin CLI are as follow:

add_component & remove_component

Following are the various options available for the above operations

Option
Type
Description
Example

name

string

Service Name

odin operate service --operation add_component --name Service-A --env env-1001 --file file.json

env

string

Environment Name

--do--

file

string

The file that contains the component details to be added/removed

--do--

options

string

The json content directly being passed as inline content

odin operate service --operation remove_component --name Service-A --env env-1001 --options '{"component_name":"odindemo"}'

Last updated