tscad is in early development
DocsCommandstscad dev

tscad dev

Start the development server

Overview

Running tscad dev starts a development server that serves the model file specified in the model argument. By default, it serves src/model.ts on port 4000. You can specify a different model file or port using the command line arguments.

Terminal
Usage: tscad dev [options]

> Start the development server

Options:
  --model [model]    Where to find the tscad model (default: "src/model.ts")
  -p, --port <port>  The port to listen at (default: 4000, env: PORT)
  --open             Open the browser once started (default: false, env: OPEN)
  -h, --help         Display help for command

This is how it looks like:

$ tscad dev
Starting tscad dev 

  Model:   src/model.ts
  Local:   http://localhost:4000/
  press h + enter to show help

Once the server is running you can open it in a browser. If you run it in a VSCode Terminal, an inline preview should be opened automatically by our VSCode extension (if installed).

API

Terminal
$ tscad dev [options]

Options

Prop

Type

On this page

Last updated: