Skip to content
Back to skills

Cli Server Operations

ASecurity

"Operate Prefect CLI, profiles, settings, server, Cloud, variables,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
databasespythongoshellsqlapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill cli-server-operations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli Server Operations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli Server Operations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cli-server-operations/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cli-server-operations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli-server-operations
description: "Operate Prefect CLI, profiles, settings, server, Cloud, variables,
  artifacts, shell command flows, and diagnostics safely."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# CLI And Server Operations

Use this sub-skill when a task asks how to operate Prefect from the command line, switch profiles, manage settings, check server/API readiness, start or inspect a self-hosted server, authenticate to Prefect Cloud, use shell-command flows, inspect variables or artifacts, or gather operational diagnostics.

## Start Here

1. Read `references/cli-reference.md` for the root command map, session flags, profile/config commands, Cloud/API commands, variables, artifacts, shell, dashboard, and plugin diagnostics.
2. Read `references/server-operations.md` before starting, stopping, scaling, migrating, or troubleshooting a self-hosted Prefect server.
3. Read `references/troubleshooting.md` when behavior differs by profile, API URL, settings source, Cloud credentials, parser errors, database migration state, or server port availability.
4. Run `python scripts/prefect_cli_doctor.py --help` to see safe read-only diagnostic checks; the script never starts a server or mutates Prefect state unless explicitly extended by a future maintainer.

## Safe Operating Rules

- Prefer read-only checks first: `prefect --version`, `prefect version`, `prefect config view`, `prefect profile ls`, `prefect server status --output json`, and command `--help`.
- Treat `prefect server start`, `prefect server services start`, `prefect shell serve`, and background modes as long-running service operations that require explicit user approval and a stop plan.
- Treat `prefect server database reset`, `downgrade`, `upgrade`, and `stamp` as database-mutating operations; require explicit production safety confirmation, backups, and a rollback plan.
- Treat Cloud login/logout, workspace switching, variables, artifact deletion, and API write requests as user-context mutations; confirm target profile and workspace first.
- Keep deployment/work-pool/worker flag details in `../deployments-workers/SKILL.md`; keep events, automations, blocks, assets, and concurrency primitives in `../events-blocks-assets/SKILL.md`; keep Python client coding and settings APIs in `../api-client-settings/SKILL.md`.

## Common Task Routing

- **Profile or setting mismatch:** inspect `PREFECT_PROFILE`, `prefect profile ls`, `prefect profile inspect`, and `prefect config view --show-sources`; then use `references/troubleshooting.md`.
- **Local server readiness:** set `PREFECT_API_URL` to the server API endpoint, run `prefect server status --wait --timeout 30 --output json`, or use `scripts/prefect_cli_doctor.py --check-server`.
- **Self-host startup:** use `references/server-operations.md`; start with SQLite only for local single-server use, and use PostgreSQL plus Redis-backed settings for multi-worker or scaled deployments.
- **Cloud context:** use `prefect cloud login`, `prefect cloud workspace ls`, and `prefect cloud workspace set` only after confirming credentials and workspace; never print API keys.
- **CLI parser vs settings errors:** parser errors show command usage and missing/invalid parameters; settings errors mention validation, unknown settings, or invalid profile values before command execution.

Files in this skill

  • SKILL.md3.3 KB
  • references/cli-reference.md8.5 KB
  • references/server-operations.md6.5 KB
  • references/troubleshooting.md7.6 KB
  • scripts/prefect_cli_doctor.py9.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.