Cli and cloud

From VectorSpaceLab/AREX-Skill · View interactive version

Cli and cloud is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use BentoML CLI command families and BentoCloud workflows safely: login/context, deploy/deployment lifecycle, codespaces, secrets, API tokens, push/pull, and cloud troubleshooting. Use when a task asks for bentoml terminal commands or BentoCloud operations rather than Python service authoring, local

How to use this skill

Skill file

BentoML CLI And BentoCloud

Use this sub-skill when the user needs a safe command plan or troubleshooting path for BentoML CLI and BentoCloud. Treat credentialed cloud commands as user-run operations unless the user explicitly asks you to execute them in an authenticated environment.

Safe Operating Rules

Workflow Routing

Common Command Plans

Inspect CLI Without Cloud Access

python skills/bentoml/sub-skills/cli-and-cloud/scripts/inspect_bentoml_cli.py --commands "cloud" "deployment" "deploy" "secret" "api-token"

This helper only imports the local CLI and renders Click help through CliRunner; it does not log in or contact BentoCloud.

Login And Verify Context

bentoml cloud login
bentoml cloud current-context
bentoml cloud list-context

Use bentoml cloud login --api-token "$BENTOCLOUD_API_TOKEN" only in user-controlled shells or CI logs with secret masking. The CLI also accepts BENTO_CLOUD_API_ENDPOINT and BENTO_CLOUD_API_KEY environment variables.

Deploy From A Project Directory

bentoml deploy . -n my-deployment --cluster my-cluster --scaling-min 0 --scaling-max 3 --wait --timeout 3600

If configuration is complex or there are multiple services, prefer a YAML/JSON config and lint it first:

python skills/bentoml/sub-skills/cli-and-cloud/scripts/deployment_config_lint.py config-file.yaml
bentoml deploy -f config-file.yaml

Manage A Deployment

bentoml deployment list --cluster my-cluster
bentoml deployment get my-deployment --cluster my-cluster -o yaml
bentoml deployment update my-deployment --cluster my-cluster --scaling-min 1 --scaling-max 5
bentoml deployment apply my-deployment --cluster my-cluster -f deployment.yaml
bentoml deployment terminate my-deployment --cluster my-cluster --wait

Use update for patch-only changes. Use apply when the config should become the desired full state; it can reset or remove unspecified fields.

Cross-References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.