Skip to content

๐Ÿง  CLI Usage

Shellsmith provides a powerful Typer-based command-line interface.

Getting Started

aas --help

Top-Level Commands

Command Description
info Display the current Shell tree and identify issues.
upload Upload a single AAS file or all AAS files from a folder.
nuke โ˜ข๏ธ Delete all Shells and Submodels (irrevocable).
encode Encode a value (e.g. Shell ID) to Base64.
decode Decode a Base64-encoded value.
get Get Shells, Submodels, and Submodel Elements.
delete Delete Shells, Submodels, or Submodel Elements.
update Update Shells, Submodels, or Submodel Elements.
create Create new Shells, Submodels, or Submodel Elements.

๐Ÿ’ก Use aas <command> --help to explore subcommands and options.


๐Ÿ”Ž Get Commands

Command Description
aas get shells ๐Ÿ”น Get all available Shells.
aas get shell ๐Ÿ”น Get a specific Shell by ID.
aas get submodel-refs ๐Ÿ”น Get all Submodel References of a Shell.
aas get submodels ๐Ÿ”ธ Get all Submodels.
aas get submodel ๐Ÿ”ธ Get a specific Submodel by ID.
aas get submodel-value ๐Ÿ”ธ Get the $value of a Submodel.
aas get submodel-meta ๐Ÿ”ธ Get the $metadata of a Submodel.
aas get elements ๐Ÿ”ป Get all Submodel Elements of a Submodel.
aas get element ๐Ÿ”ป Get a specific Submodel Element.
aas get element-value ๐Ÿ”ป Get the $value of a Submodel Element.

๐Ÿ› ๏ธ Create Commands

Command Description
aas create shell ๐Ÿ”น Create a new Shell.
aas create submodel-ref ๐Ÿ”น Add a Submodel Reference to a Shell.
aas create submodel ๐Ÿ”ธ Create a new Submodel.
aas create element ๐Ÿ”ป Create a new Submodel Element.
aas create element ๐Ÿ”ป Create an Element at a nested path.

โ„น๏ธ Use either --data or --file โ€” not both.


๐Ÿงฌ Update Commands

Command Description
aas update shell ๐Ÿ”น Update a Shell (full replacement).
aas update submodel ๐Ÿ”ธ Update a Submodel (full replacement).
aas update submodel-value ๐Ÿ”ธ Update the $value of a Submodel (partial update).
aas update element ๐Ÿ”ป Update a Submodel Element (full replacement).
aas update element-value ๐Ÿ”ป Update the $value of a Submodel Element (partial update).

๐Ÿงน Delete Commands

Command Description
aas delete shell ๐Ÿ”น Delete a Shell and optionally all referenced Submodels.
aas delete submodel-ref ๐Ÿ”น Remove a Submodel reference from a Shell.
aas delete submodel ๐Ÿ”ธ Delete a Submodel and optionally unlink it from all Shells.
aas delete element ๐Ÿ”ป Delete a Submodel Element.