laravel-cloud-ops

Installation
SKILL.md

Laravel Cloud ops

Two tools:

  • cloud CLI (cloud list, cloud <command> --help). Most commands take an environment ID or name and support --json.
  • REST API, base https://cloud.laravel.com/api, bearer token. Use it for things the CLI lacks.
cloudapi() {  # usage: cloudapi METHOD PATH [non-secret JSON]
  if [ -n "${3:-}" ]; then
    printf '%s' "$3" | "$HOME/.dotfiles/bin/spatie-ops" request cloud "$1" "$2" --input -
  else
    "$HOME/.dotfiles/bin/spatie-ops" request cloud "$1" "$2"
  fi
}

Read spatie-ops first for private authentication and safe API output. The helper uses the Cloud CLI login or a private 1Password reference; its response is wrapped in status and response. For sensitive payloads, construct JSON in memory and send it on stdin rather than passing secret values as shell arguments. Use --private-output or the in-memory client when automation needs unredacted data.

Installs
1
GitHub Stars
1.0K
First Seen
5 days ago