Skip to content

Slot: command

POSIX shell command to execute (e.g., 'python src/train.py', 'Rscript analysis.R', 'julia model.jl'). Any executable invocation is fine.

The command is a template. Runners substitute these placeholders before invoking it:

__

_ {inputs.} -- path to the named upstream input_

_ (must be declared in Output.inputs)_

_ {inputs} -- space-separated paths to all declared_

_ inputs, in declaration order_

_ {decisions.} -- active option ID for the named_

_ decision in the current universe_

_ (must be declared in Output.decisions)_

_ {output} -- path the artifact will be written to_

__

Use {{ and }} to emit literal '{' and '}'. Every placeholder must resolve to a declared item; the validator rejects unresolved or undeclared references.

Static constants belong inline in the command (e.g., '--max-iter 1000'); there is no separate params channel because varying values are decisions and constants are just command text.

URI: astra:command Alias: command

Applicable Classes

Name Description Modifies Slot
Recipe A build rule that produces an output no

Properties

Type and Range

Property Value
Range String
Domain Of Recipe

Cardinality and Requirements

Property Value
### Slot Characteristics
Property Value
Owner Recipe

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self astra:command
native astra:command

LinkML Source

name: command
description: "POSIX shell command to execute (e.g., 'python src/train.py', 'Rscript\
  \ analysis.R', 'julia model.jl'). Any executable invocation is fine.\nThe command\
  \ is a template. Runners substitute these placeholders before invoking it:\n\n \
  \ {inputs.<id>}     -- path to the named upstream input\n                      \
  \ (must be declared in Output.inputs)\n  {inputs}          -- space-separated paths\
  \ to all declared\n                       inputs, in declaration order\n  {decisions.<id>}\
  \  -- active option ID for the named\n                       decision in the current\
  \ universe\n                       (must be declared in Output.decisions)\n  {output}\
  \          -- path the artifact will be written to\n\nUse {{ and }} to emit literal\
  \ '{' and '}'. Every placeholder must resolve to a declared item; the validator\
  \ rejects unresolved or undeclared references.\nStatic constants belong inline in\
  \ the command (e.g., '--max-iter 1000'); there is no separate `params` channel because\
  \ varying values are decisions and constants are just command text."
from_schema: https://w3id.org/astra/analysis
rank: 1000
alias: command
owner: Recipe
domain_of:
- Recipe
range: string