Skip to main content

stave config context create

Create or update a named context

Usage

stave config context create <name> [flags]

Description

Create a named context that stores default paths for a project. Contexts are saved in the user configuration and selected with 'config context use'. They affect default path resolution only — evaluation semantics are never changed.

Exit Codes: 0 Context created or updated 2 Input error (invalid directory or name) 4 Internal error

Flags

FlagTypeDescription
--configstringProject config path (absolute or relative to --dir) (default: stave.yaml)
--controlsstringDefault controls directory for this context
-d, --dirstringProject root directory for this context (default: .)
--observationsstringDefault observations directory for this context

Examples

stave config context create myproject --dir /path/to/project
stave config context create myproject --dir . --controls controls/s3