Package Exports
- @datavysta/vysta-cli
- @datavysta/vysta-cli/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@datavysta/vysta-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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