Skip to content

runok migrate

runok migrate automatically updates deprecated config syntax to the latest format while preserving comments and formatting.

Terminal window
runok migrate [options]

See Global Flags. 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.

The legacy writable/deny fields are rewritten to the new write.allow/write.deny structure:

# Before
fs:
writable: [., /tmp]
deny: [.env]
# After
fs:
write:
allow: [., /tmp]
deny: [.env]
Terminal window
# Migrate all discovered config files
runok migrate
# Migrate a specific file
runok migrate -c runok.yml