or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

cli.mdfile-system.mdindex.mdnetwork-operations.mdprocess-management.mdshell-execution.mduser-interaction.mdutilities.md

cli.mddocs/

0

# CLI Functions

1

2

Command line interface specific functionality for the zx CLI tool.

3

4

## Capabilities

5

6

### Markdown Processing

7

8

Transform markdown content for use in scripts.

9

10

```typescript { .api }

11

/**

12

* Transform markdown content with zx-specific processing

13

* @param content - Markdown content to transform

14

* @returns Transformed content

15

*/

16

function transformMarkdown(content: string): string;

17

```

18

19

**Usage:**

20

21

```typescript

22

import { transformMarkdown } from "zx/cli";

23

24

const markdownContent = `

25

# My Script

26

27

\`\`\`javascript

28

await $\`echo "Hello World"\`;

29

\`\`\`

30

`;

31

32

const transformed = transformMarkdown(markdownContent);

33

console.log(transformed);

34

```

35

36

## CLI-specific Types

37

38

```typescript { .api }

39

/**

40

* CLI argument parsing options specific to zx command line tool

41

*/

42

interface CliArgv extends minimist.ParsedArgs {

43

version?: boolean;

44

help?: boolean;

45

quiet?: boolean;

46

verbose?: boolean;

47

install?: boolean;

48

repl?: boolean;

49

experimental?: boolean;

50

shell?: string;

51

prefix?: string;

52

postfix?: string;

53

eval?: string;

54

cwd?: string;

55

ext?: string;

56

registry?: string;

57

env?: string;

58

}

59

```