Skip to content

Eodash Command Line Interface

eodash CLI is powered by Vite, providing an optimized development experience and producing minified ESM bundles for production.

dev

Starts vite's dev server.

usage

bash
eodash dev

options

OptionDescriptionDefault
-v, --versionoutput the current version--
--publicDir <path> path to statically served assets folder/public
--no-publicDirdo not serve static assets--
-e, --entryPoint <path>file exporting `createEodash` src/main.js
-w, --widgets <path>folder that contains vue components as internal widgetssrc/widgets
--cacheDir <path>set cache folder.eodash/cache
-r, --runtime <path>file exporting eodash client runtime configsrc/runtime.js
-b, --base <path>base public path/
-p, --port <port>serving port--
-o, --openopen default browser when the server startsfalse
-c, --config <path>path to eodash server and build configuration file eodash.config.js
--host [IP address]specify which IP addresses the server should listen onfalse
--no-hostdo not expose server to the network--
-l, --libbuilds and serves eodash as a web componentfalse
--no-libbuilds and serves eodash as an SPA--

build

Builds eodash for production

usage

bash
eodash build

options

OptionDescriptionDefault
-v, --versionoutput the current version--
--publicDir <path> path to statically served assets folder/public
--no-publicDirdo not serve static assets--
--outDir <path>sets the minified output folder.eodash/dist
-e, --entryPoint <path>file exporting `createEodash` src/main.js
-w, --widgets <path>folder that contains vue components as internal widgetssrc/widgets
-r, --runtime <path>file exporting eodash client runtime configsrc/runtime.js
-c, --config <path>path to eodash server and build configuration file eodash.config.js
-l, --libbuilds and serves eodash as a web componentfalse
--no-libbuilds and serves eodash as an SPA--

preview

Locally preview the production build. This is not intended to be used for production.

usage

bash
eodash preview

options

OptionDescriptionDefault
-v, --versionoutput the current version--
-b, --base <path>base public path/
-p, --port <port>serving port--
-o, --openopen default browser when the server startsfalse
--host [IP address]specify which IP addresses the server should listen onfalse
--no-hostdo not expose server to the network--

Configuration

While running the eodash command line, it automatically tries to locate a configuration file named eodash.config.js from the root folder of your project. You can also explicitly specify a config file to use with the --config or -c CLI option (resolved relative to your projects root folder). You can also override the configuration values using the CLI options. refer to the API to learn more:

eodash.config.js Basic Example

js
export default {
    lib: false,
    dev: {
        port: 3333,
        open: true
    }
    ...
}

Integrate your IDE’s intellisense

with eodash’s TypeScript typings using jsdoc hints

js
/** @type {import("@eodash/eodash/config").EodashConfig} */
export default {
    ...
}

Or using the defineConfig helper funtion

js
import { defineConfig } from "@eodash/eodash/config"
export default defineConfig({
    ...
})