@datavysta/vysta-cli
v1.0.3
Published
Generate TypeScript models from your Vysta server
Maintainers
Readme
@datavysta/vysta-cli
Command line interface for generating TypeScript models from your Vysta server.
Installation
# Install globally
npm install -g @datavysta/vysta-cli
# Or run directly with npx
npx @datavysta/vysta-cli@latest your-domain.comUsage
The CLI generates TypeScript models from your Vysta server:
# Generate models from a server
vysta-cli your-server.com
# The CLI will ask:
# Where should we save the models? (./src/models)Generated Files
The CLI will generate four files in your specified directory:
services.ts- Service class definitions for your entitiestypes.ts- TypeScript interfaces for your data schemaworkflows.ts- Workflow definitions for your business processesfiles.ts- File and asset definitions for your application
URL Formats
The CLI supports various URL formats:
# Default (HTTPS)
vysta-cli your-server.com
# Explicit HTTPS
vysta-cli https://your-server.com
# HTTP if required
vysta-cli http://your-server.com
# With port
vysta-cli your-server.com:8080Development
# Clone the repository
git clone https://github.com/datavysta/vysta-cli.git
# Install dependencies
npm install
# Build
npm run build
# Test
npm test
# Run locally
./dist/index.js your-server.comLicense
MIT
