Skip to content

update

Update an existing cronjob

Terminal window
conhive-agent cronjobmanager update

Update a cronjob with JSON input (id, name, description)

Terminal window
conhive-agent cronjobmanager update [flags]
Terminal window
cronjobmanager update --json '{"id":123,"name":"New name","description":"Updated desc"}'
Terminal window
-h, --help help for update
--json string JSON input (required) (with default values):
{
"slug": "",
"name": "",
"protected": false,
"labels": {},
"expression": "*/10 * * * *",
"disabled": false,
"icon": "solar:atom-broken",
"color": "#F5A623",
"task": ""
}
-f, --log-format string Specify the logging format (options: console,
json) (default "text")
-l, --log-level string Define the logging level (options: trace,
debug, info, warn, error, fatal, panic)
(default "info")
-o, --log-to-file Enable logging to a file (default true)
-p, --port int32 Port to run the server on (default 5050)
-w, --workdir string Set the working directory for agent operations
(default: $HOME/.conhive)