Apply
Apply a codify.json
file. Codify apply will first generate a plan of the changes needed to meet
the desired config. The user will then be asked to confirm the plan before apply makes changes on the system.
By default, apply operates in stateless mode which means that resources can only be created and
modified but not destroyed. Existing packages do not need to be imported into Codify in stateless
mode and no state files are generated. Use codify destroy
to destroy resources in stateless mode.
Options
Path: —path -p
Specify the path for the codify.json
file. This parameter accepts both relative and absolute paths.
Output mode: —output -o
Specify the CLI output mode. Options: [default, plain, debug, json]. The output mode controls what gets
printed to the console.
Debug output mode: —debug
A flag to enable debug mode. In debug mode, the debug output will be turned on and the DEBUG=codify flag
will be passed to all plugins. Additional and verbose logging will be printed. Useful for debugging
any issues.
Secure mode: —secure -s
Activates secure mode which sandboxes all plugins and prevents them from using sudo unless explictly
permitted by the user. This is done by launching the plugins as a separate processes without TTY access.
Secure mode is automatically turned on if an unverified plugin is used.