io7m | single-page | multi-page | epub | xstructural 2.0.0
3.2. EPUB
Previous
3. Command-Line Interface
Up
3.4. Validate
Next

# 3.3. Schema

- 3.3.1. Name
- 3.3.2. Description
- 3.3.3. Examples

## 3.3.1. Name

1
schema - Export schemas

## 3.3.2. Description

1
The schema command exports the Structural schema files into a specified directory.

### 3.3.2.2. Parameters

Parameter | Type | Required | Description
--- | --- | --- | ---
--outputDirectory | Path | true | The path to the output directory.
--replace | Boolean | false | If set to true, any existing files will be replaced.

## 3.3.3. Examples

### 3.3.3.1. Example

    $ xstructural schema --outputDirectory xsd

    $ ls -alF xsd/
    total 40
    drwxr-xr-x  2 xs xs  4096 Apr 28 09:59 ./
    drwxr-xr-x 13 xs xs  4096 Apr 28 09:59 ../
    -rw-r--r--  1 xs xs  4944 Apr 28 09:59 dc.xsd
    -rw-r--r--  1 xs xs  4726 Apr 28 09:59 xml.xsd
    -rw-r--r--  1 xs xs 15599 Apr 28 09:59 xstructural-1.xsd

    $ xstructural schema --outputDirectory xsd
    xstructural: XSCommandSchema: INFO: output file xsd/dc.xsd already exists, ignoring
    xstructural: XSCommandSchema: INFO: output file xsd/xml.xsd already exists, ignoring
    xstructural: XSCommandSchema: INFO: output file xsd/xstructural-1.xsd already exists, ignoring

    $ echo hello > xsd/xstructural-1.xsd

    $ ls -alF xsd/
    total 40
    drwxr-xr-x  2 xs xs  4096 Apr 28 09:59 ./
    drwxr-xr-x 13 xs xs  4096 Apr 28 09:59 ../
    -rw-r--r--  1 xs xs  4944 Apr 28 09:59 dc.xsd
    -rw-r--r--  1 xs xs  4726 Apr 28 09:59 xml.xsd
    -rw-r--r--  1 xs xs     6 Apr 28 10:13 xstructural-1.xsd

    $ xstructural schema --outputDirectory xsd --replace true

    $ ls -alF xsd/
    total 40
    drwxr-xr-x  2 xs xs  4096 Apr 28 10:14 ./
    drwxr-xr-x 13 xs xs  4096 Apr 28 10:10 ../
    -rw-r--r--  1 xs xs  4944 Apr 28 10:14 dc.xsd
    -rw-r--r--  1 xs xs  4726 Apr 28 10:14 xml.xsd
    -rw-r--r--  1 xs xs 15599 Apr 28 10:14 xstructural-1.xsd

3.2. EPUB
Previous
3. Command-Line Interface
Up
3.4. Validate
Next
io7m | single-page | multi-page | epub | xstructural 2.0.0