Package: wcm
WCM - WINGS Component ManagerInstallationpipinstallwcmCLIwcmWINGS Component Manager is a cli utility topublishanddownloadWINGS component to a WINGS instance.$wcm--help
Usage:wcm[OPTIONS]COMMAND[ARGS]...

Options:-v,--verbose--helpShowthismessageandexit.

Commands:configureConfigurecredentialsdownloadDownloadacomponentfromthewingsserver.initInitializeadirectoryforanewcomponent.listListsallthecomponentsinthecurrentwingsinstancepublishDeploythepacakgetothewcm.versionShowwcmversion.Theconfiguresub command is used to setup credentials used bywcmto interact with WINGS server(s).$wcmconfigure--help
Usage:wcmconfigure[OPTIONS]Configurecredentials

Options:-p,--profile<profile-name>--helpShowthismessageandexit.Theinitsub command is used to initialze a new WINGS component on the file-system.$wcminit--help
Usage:wcminit[OPTIONS][COMPONENT]Initializeadirectoryforanewcomponent.

Options:-y,--yes--helpShowthismessageandexit.Thepublishsub command publishes a component to a WINGS server.$wcmpublish--help
Usage:wcmpublish[OPTIONS][COMPONENT]Deploythepacakgetothewcm.

Options:-d,--debug/-nd,--no-debug-n,--dry-run--helpShowthismessageandexit.Thedownloadsub command will download a component from the current wings server.$wcmdownload--help
Usage:wcmdownload[OPTIONS]COMPONENT_ID
Downloadacomponentfromwingsserver.Datastoredin.yamlfileandsourcecodedownloadedtofolderwithinsamedirectory.file-pathcanbespecifiedtodownloadintoaspecificdirectory

Options:-p,--profile<profile-name>-f,--file-pathTEXT--helpShowthismessageandexit.Thelistsub command lists all the component's names from the current wings server$wcmlist--help
Usage:wcmlist[OPTIONS]Listsallthecomponentsinthecurrentwingsinstance

Options:
-p,--profile<profile-name>
--helpShowthismessageandexit.Example usageOnce wcm is installed, configure your credentials to use a wings serverC:\Users\Admin>wcmconfigure
WINGSServerURL:WINGSExportURL:http://localhost:8080
WINGSUser:myUsername
WINGSPassword:
WINGSDomain:wings-domain
SuccessNow you can begin using wcm. First list the components on the wings instance you specified on the credentialsC:\Users\Admin>wcmlist[Economic]└─┐├─economic-v6├─economictest-v5├─economicnodata-v6├─economic-different-data-v6└─economicwcmtest[Hydrological]└─┐├─HAND-1├─hand_final-v1├─hand-v1└─handnodata-v1.0.1DoneNext, you can download one of these components. Let's choose economic-v6. First you need to navigate into the directory you want to download the component to. Alternatively you could also use the -f  argument to specify a filepath for the component to be downloaded toC:\Users\Admin\Desktop\down>ls

C:\Users\Admin\Desktop\down>wcmdownloadeconomic-v52019-08-1314:52:02,082rootINFODownloadingcomponent2019-08-1314:52:02,226rootINFOGeneratedYAML2019-08-1314:52:02,256rootINFODownloadcompleteDownloadcompleteC:\Users\Admin\Desktop\down>ls
economic-v6When you download a component it comes in three parts. The wings-component.yaml file which stores the components data. The src folder which stores the sorce code. And the data folder, which at the moment is just a placeholderAfter downloading the economic-v5 component, you may edit some of the source code. To upload a new version (6.1 in the example), use the publish commandC:\Users\Admin\Desktop\down>ls
economic-v6.1

C:\Users\Admin\Desktop\down>wcmpublisheconomic-v6.12019-08-1315:04:08,540rootINFOPublishingcomponent
SuccessNow lets check the list command to make sure it was publishedC:\Users\Admin\Desktop\down>wcmlist[Economic]└─┐├─economic-v6├─economictest-v5├─economicnodata-v6├─economic-different-data-v6├─economicwcmtest└─economic-v6.1[Hydrological]└─┐├─HAND-1├─hand_final-v1├─hand-v1└─handnodata-v1.0.1

DoneAnd now the economic-v6.1 component has been uploaded to WINGS