KosmoKrator

productivity

Drone CI CLI for AI Agents

Use the Drone CI CLI from KosmoKrator to call Drone CI tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

Drone CI CLI Setup

Drone CI can be configured headlessly with `kosmokrator integrations:configure drone-ci`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure drone-ci --set url="$DRONE_CI_URL" --set access_token="$DRONE_CI_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor drone-ci --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
url DRONE_CI_URL Text text yes Drone URL
access_token DRONE_CI_ACCESS_TOKEN Secret secret yes Access Token

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call drone-ci.drone_ci_get_current_user '{}' --json
Provider shortcut
kosmo integrations:drone-ci drone_ci_get_current_user '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs drone-ci --json
kosmo integrations:docs drone-ci.drone_ci_get_current_user --json
kosmo integrations:schema drone-ci.drone_ci_get_current_user --json
kosmo integrations:search "Drone CI" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

drone-ci.drone_ci_get_current_user

Get authenticated Drone user.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_get_current_user '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_get_current_user '{}' --json

drone-ci.drone_ci_get_current_user_feed

Get current user activity feed.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_get_current_user_feed '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_get_current_user_feed '{}' --json

drone-ci.drone_ci_list_current_user_repos

List repositories registered to the user.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_list_current_user_repos '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_list_current_user_repos '{}' --json

drone-ci.drone_ci_sync_current_user

Sync user repositories from source control.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_sync_current_user '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_sync_current_user '{}' --json

drone-ci.drone_ci_get_repo

Get repository details.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_get_repo '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_get_repo '{}' --json

drone-ci.drone_ci_enable_repo

Enable a repository in Drone.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_enable_repo '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_enable_repo '{}' --json

drone-ci.drone_ci_update_repo

Update repository settings.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_update_repo '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_update_repo '{}' --json

drone-ci.drone_ci_disable_repo

Disable a repository in Drone.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_disable_repo '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_disable_repo '{}' --json

drone-ci.drone_ci_repair_repo

Repair repository webhooks.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_repair_repo '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_repair_repo '{}' --json

drone-ci.drone_ci_chown_repo

Change repository ownership.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_chown_repo '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_chown_repo '{}' --json

drone-ci.drone_ci_list_builds

List repository builds.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_list_builds '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_list_builds '{}' --json

drone-ci.drone_ci_create_build

Create a custom build.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_create_build '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_create_build '{}' --json

drone-ci.drone_ci_get_build

Get one build.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_get_build '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_get_build '{}' --json

drone-ci.drone_ci_restart_build

Restart a build.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_restart_build '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_restart_build '{}' --json

drone-ci.drone_ci_stop_build

Stop a build.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_stop_build '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_stop_build '{}' --json

drone-ci.drone_ci_approve_build

Approve a blocked build.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_approve_build '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_approve_build '{}' --json

drone-ci.drone_ci_decline_build

Decline a blocked build.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_decline_build '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_decline_build '{}' --json

drone-ci.drone_ci_promote_build

Promote a build.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_promote_build '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_promote_build '{}' --json

drone-ci.drone_ci_get_build_logs

Get build logs for a stage and step.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_get_build_logs '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_get_build_logs '{}' --json

drone-ci.drone_ci_list_cron

List repository cron jobs.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_list_cron '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_list_cron '{}' --json

drone-ci.drone_ci_create_cron

Create a repository cron job.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_create_cron '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_create_cron '{}' --json

drone-ci.drone_ci_get_cron

Get one cron job.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_get_cron '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_get_cron '{}' --json

drone-ci.drone_ci_update_cron

Update one cron job.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_update_cron '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_update_cron '{}' --json

drone-ci.drone_ci_delete_cron

Delete one cron job.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_delete_cron '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_delete_cron '{}' --json

drone-ci.drone_ci_trigger_cron

Trigger one cron job.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_trigger_cron '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_trigger_cron '{}' --json

drone-ci.drone_ci_list_secrets

List repository secrets.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_list_secrets '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_list_secrets '{}' --json

drone-ci.drone_ci_create_secret

Create repository secret.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_create_secret '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_create_secret '{}' --json

drone-ci.drone_ci_get_secret

Get repository secret metadata.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_get_secret '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_get_secret '{}' --json

drone-ci.drone_ci_update_secret

Update repository secret.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_update_secret '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_update_secret '{}' --json

drone-ci.drone_ci_delete_secret

Delete repository secret.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_delete_secret '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_delete_secret '{}' --json

drone-ci.drone_ci_list_users

List Drone users.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_list_users '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_list_users '{}' --json

drone-ci.drone_ci_get_user

Get one Drone user.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_get_user '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_get_user '{}' --json

drone-ci.drone_ci_api_get

Call a safe relative Drone GET path.

Read read
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_api_get '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_api_get '{}' --json

drone-ci.drone_ci_api_post

Call a safe relative Drone POST path.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_api_post '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_api_post '{}' --json

drone-ci.drone_ci_api_patch

Call a safe relative Drone PATCH path.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_api_patch '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_api_patch '{}' --json

drone-ci.drone_ci_api_delete

Call a safe relative Drone DELETE path.

Write write
Parameters
none
Generic call
kosmo integrations:call drone-ci.drone_ci_api_delete '{}' --json
Shortcut
kosmo integrations:drone-ci drone_ci_api_delete '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

drone-ci.drone_ci_get_current_user 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_get_current_user_feed 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_get_current_user_feed --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_list_current_user_repos 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_list_current_user_repos --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_sync_current_user 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_sync_current_user --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_get_repo 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_get_repo --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_enable_repo 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_enable_repo --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_update_repo 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_update_repo --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_disable_repo 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_disable_repo --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_repair_repo 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_repair_repo --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_chown_repo 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_chown_repo --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_list_builds 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_list_builds --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_create_build 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_create_build --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_get_build 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_get_build --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_restart_build 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_restart_build --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_stop_build 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_stop_build --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_approve_build 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_approve_build --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_decline_build 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_decline_build --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_promote_build 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_promote_build --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_get_build_logs 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_get_build_logs --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_list_cron 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_list_cron --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_create_cron 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_create_cron --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_get_cron 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_get_cron --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_update_cron 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_update_cron --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_delete_cron 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_delete_cron --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_trigger_cron 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_trigger_cron --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_list_secrets 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_list_secrets --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_create_secret 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_create_secret --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_get_secret 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_get_secret --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_update_secret 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_update_secret --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_delete_secret 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_delete_secret --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_list_users 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_list_users --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_get_user 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_get_user --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_api_get 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_api_get --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_api_post 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_api_post --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_api_patch 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_api_patch --json
ParameterTypeRequiredDescription
No parameters.
drone-ci.drone_ci_api_delete 0 parameters
Schema command
kosmo integrations:schema drone-ci.drone_ci_api_delete --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.