Commands to create/delete/list components
create-component
Command to create compnent version.
--source must be a zip file path of the source
Createing public components is not yet supported
--type PUBLIC is not supported
The configuration file follows the following structre
Json file
component id
ex) com.example.first
component version
ex) 1.0.0
component description
ex) first application
component thumbnail
The thumbnail should be in the same location as the config file(--configuration-file)
ex) icon.png
script to run the component
ex) pip3 install -r requirements.txt;python3 main.py
in the case of a web application, a link to access the application
ex) http://127.0.0.1:3000
component title
ex) My First App
Command
$ damda create-component [OPTIONS]
# Options:
# --source PATH: [required]
# --configuration-file PATH: [required]
# --type TEXT: [defulat: CUSTOM] [CUSTOM | PUBLIC]
# --profile TEXT: [default: default]
Usage
Recommanded Component structure (example)
# com.example.first_0.0.1.json
{
"id":"com.example.first",
"version": "1.0.2",
"description": "Sample Component",
"thumbnail": "icon.png",
"script": "python3 {root}/first/first.py",
"link": "",
"title": "Frist app"
}
$ cd <COMPONENT_PROJECT_DIR>
$ damda create-component --source ./first.zip --configuration-file ./com.example.first.json
delete-component-version
Delete a specific version of a component.
Command
$ damda delete-component-version [OPTIONS]
# Options:
# --component-id TEXT: [required]
# --component-version TEXT: [required]
# --profile TEXT: [default: default]
Usage
$ damda delete-component-version --component-id com.example.first --component-version 1.0.0
delete-component
Delete all versions of a component
Command
$ damda delete-component [OPTIONS]
# Options:
# --component-id TEXT: [required]
# --profile TEXT: [default: default]
Usage
$ damda delete-component --component-id com.example.first
list-component-versions
Retrieves a list of versions of a component.
Command
$ damda list-component-versions [OPTIONS]
# Options
# --component-id TEXT: [required]
# --profile TEXT: [default: default]
Usage
$ damda list-component-versions --component-id com.example.first
['1.0.2', '1.0.1', '1.0.0']
list-components
Retrieves a list of CUSTOM or PUBLIC components.
Command
$ damda list-component-versions [OPTIONS]
# Options:
# --component-id TEXT: [required]
# --profile TEXT: [default: default]
Usage
cast 1) list CUSTOM components
$ damda list-components
[{"componentName":"com.example.first","latestVersion":"1.0.2"}]
cast 2) list PUBLIC components
$ damda list-components --tpye PUBLIC
[{"componentName":"com.damda.webostv","latestVersion":"1.0.4"},
{"componentName":"com.damda.voice","latestVersion":"1.0.4"},
{"componentName":"com.damda.thinq-web","latestVersion":"1.0.15"},
{"componentName":"com.damda.thinq-backend-api","latestVersion":"1.1.1"},
{"componentName":"com.damda.instaview.resource","latestVersion":"1.0.0"},
{"componentName":"com.damda.instaview.home","latestVersion":"1.0.0"},
{"componentName":"com.damda.home","latestVersion":"1.0.6"}]