rune create
create is the imperative counterpart to cast. Use it when you don’t want to write a YAML file for a one-off resource.
Subcommands
Section titled “Subcommands”rune create namespace <name>rune create secret <name> [--from-literal=k=v]... [--from-file=k=path]...rune create config <name> [--from-literal=k=v]... [--from-file=k=path]...Namespace
Section titled “Namespace”rune create namespace prodrune create namespace prod --description="Production workloads"Secret
Section titled “Secret”# Literalsrune create secret db-credentials \ --from-literal=username=admin \ --from-literal=password=hunter2
# From filesrune create secret tls-cert \ --from-file=tls.crt=./certs/server.crt \ --from-file=tls.key=./certs/server.key
# Replace existingrune create secret db-credentials --from-literal=password=new-pass --replaceConfig
Section titled “Config”# Literalsrune create config app-settings \ --from-literal=log-level=info \ --from-literal=feature-x=enabled
# From filesrune create config nginx-config \ --from-file=nginx.conf=./nginx.confCommon flags
Section titled “Common flags”| Flag | Notes |
|---|---|
-n, --namespace | Target namespace. |
--from-literal=k=v | Inline key/value (repeatable). |
--from-file=k=path | Read value from file (repeatable). |
--replace | Overwrite if it exists. |
When to use cast instead
Section titled “When to use cast instead”For anything you’d want to commit to git — most config — write a YAML file and cast it. create is for ad-hoc work, prototyping, and CI bootstraps.