runok migrate
runok migrate automatically updates deprecated config syntax to the latest format while preserving comments and formatting.
runok migrate [options]--config, -c <path>
Section titled “--config, -c <path>”Path to a specific config file to migrate. When omitted, runok discovers config files using the same logic as other commands: global config from $XDG_CONFIG_HOME/runok/ and project config from the nearest ancestor directory containing runok.yml.
What gets migrated
Section titled “What gets migrated”Sandbox fs legacy format
Section titled “Sandbox fs legacy format”The legacy writable/deny fields are rewritten to the new write.allow/write.deny structure:
# Beforefs: writable: [., /tmp] deny: [.env]
# Afterfs: write: allow: [., /tmp] deny: [.env]Examples
Section titled “Examples”# Migrate all discovered config filesrunok migrate
# Migrate a specific filerunok migrate -c runok.yml