io7m | single-page | multi-page | Cardant User Manual 1.0.0-SNAPSHOT
6.2. initialize
Previous
6. Command-Line Interface
Up
6.4. package list
Next

# 6.3. package get

- 6.3.1. Name
- 6.3.2. Description
- 6.3.3. Parameters
- 6.3.4. Examples

## 6.3.1. Name

1
package get - Get the text of a package

## 6.3.2. Description

1
The package get command gets the text of a built-in type package. The text of the package can be written to a file and then optionally installed with type-package-install shell command.

## 6.3.3. Parameters

### 6.3.3.1. --name

Attribute | Value
--- | ---
Name | --name
Type | java.lang.String
Default Value |
Cardinality | [1, 1]
Description | The package name.

### 6.3.3.2. --output

Attribute | Value
--- | ---
Name | --output
Type | java.nio.file.Path
Default Value |
Cardinality | [0, 1]
Description | The output file.

### 6.3.3.3. --version

Attribute | Value
--- | ---
Name | --version
Type | java.lang.String
Default Value |
Cardinality | [1, 1]
Description | The package version.

## 6.3.4. Examples

### 6.3.4.1. Example

    $ cardant package get --name cardant.product --version 1.0.0
    <?xml version="1.0" encoding="UTF-8" ?>
    <Package xmlns="com.io7m.cardant:type_packages:1">
      <PackageInfo Name="cardant.product"
                   Version="1.0.0"
                   Description="Manufactured products."/>
      <TypeScalarText Name="manufacturer"
    ...

    $ cardant package get --name cardant.product --version 1.0.0 --output out.xml

6.2. initialize
Previous
6. Command-Line Interface
Up
6.4. package list
Next
io7m | single-page | multi-page | Cardant User Manual 1.0.0-SNAPSHOT