CLI - utils

utils


The utils group bundles helper commands for setting up your development environment. Use it to install Node.js through NVM, and to capture a screenshot of a running web application (Streamlit, Reflex, or any web page) for debugging or documentation.



utils install-node


Installs Node.js using NVM (Node Version Manager). Run this once to provision Node.js in your development environment. The command takes no arguments or options.


gws utils install-node

# Install Node.js via NVM
gws utils install-node

utils screenshot


Takes a screenshot of a web application using Playwright. Playwright is installed automatically if it is not already present. Point it at a base URL and a route to capture; by default it targets a local app at http://localhost:8511. Console logs are saved alongside the screenshot unless disabled.


gws utils screenshot [OPTIONS]


# Screenshot the /dashboard route of a local app to a custom path
gws utils screenshot --route /dashboard --output ./screenshots/dashboard.png

# Screenshot a remote page with a visible browser and no console logs
gws utils screenshot --url https://example.com --no-headless --no-logs
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.