Skip to main content

component

Manage getwebstack components. You can check the complete list of components on components' hub.

Add

Add a new component to the project. This command will be run from the folder of the project in which you want to add it.

gws component add [flags]

Flags:

--name          Name of the new component. It will also create a folder with the same name.
--template The template for this component.
--route A regex path for the route to the component.
--host The prod host that will be used in production
--dev-host The developemnt host that will be used locally.

Status

Get the deployment status of the component.

gws component COMPONENT_NAME status

Logs

Get the logs from the component.

gws component logs COMPONENT_NAME

Debug

Get the host and port for debugging. This command is available only for the components which have support for debugging.

gws component COMPONENT_NAME debug