Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit d759019

Browse files
committed
patch: add extra shorthand for cli
1 parent e95db4b commit d759019

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

cli/devsc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
require('./built/devicescript-cli.cjs').mainCli()

website/docs/Dev/cli.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
11
# Command Line Interface
22

3+
## Setup
4+
5+
* install [Node.js](https://nodejs.org/en/download/)
6+
* install the CLI using npm or yarn
7+
8+
```bash
9+
npm install -g devicescript
10+
```
11+
12+
```bash
13+
corepack enable
14+
yarn add devicescript
15+
```
16+
17+
The command tool is named `devicescript` or `devsc` for short.
18+
19+
## Build
20+
21+
The `build` command compiles the DeviceScript files in the current folder, using the resolution rules in `tsconfig.json`.
22+
23+
```bash
24+
devsc build
25+
```
26+
27+
This is the default command, so you can omit build.
28+
29+
```bash
30+
devsc
31+
```

0 commit comments

Comments
 (0)