10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
Alibaba Cloud Function Compute (FC 3.0) skill for installing and using Serverless Devs to create, deploy, invoke, and remove a Python function. Use when users need CLI-based FC quick start or Serverless Devs setup guidance.
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install cinience/alicloud-compute-fc-serverless-devsInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
Category: tool
Global install (requires sudo):
sudo npm install @serverless-devs/s -g
sudo s -v
No-sudo alternative (recommended in restricted environments):
npx -y @serverless-devs/s -v
sudo s config add
Choose Alibaba Cloud (alibaba), provide AccountID, AccessKeyID, AccessKeySecret, and set alias.
Use CLI args to configure credential alias in one command (non-interactive):
s config add -a default --AccessKeyID <AK> --AccessKeySecret <SK> -f
If using environment variables, inject them into the command (example):
s config add -a default -kl AccessKeyID,AccessKeySecret -il ${ALIBABA_CLOUD_ACCESS_KEY_ID},${ALIBABA_CLOUD_ACCESS_KEY_SECRET} -f
Or use Serverless Devs convention JSON environment variable (example):
export default_serverless_devs_key='{\"AccountID\":\"<AccountID>\",\"AccessKeyID\":\"<AK>\",\"AccessKeySecret\":\"<SK>\"}'
Reference in s.yaml:
access: default_serverless_devs_key
sudo s init start-fc3-python
cd start-fc3-python
Initialization creates s.yaml, code/, and readme.md; edit code/index.py for function logic.
sudo s deploy
sudo s invoke -e "test"
sudo s remove
Note: FC default domain adds
Content-Disposition: attachment, causing...
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
Category: tool
# Function Compute (FC 3.0) Serverless Devs
## Goals
- Install and validate Serverless Devs.
- Configure credentials, initialize example project, deploy, invoke, and remove.
- Provide CLI flow with Python runtime example.
## Quick Start Flow
1. Install Node.js (14+) and npm.
2. Install and validate Serverless Devs.
3. Configure credentials via guided setup.
4. Initialize example project and enter directory.
5. Deploy, invoke, and optionally remove.
## Install Serverless Devs (npm)
Global install (requires sudo):
```bash
sudo npm install @serverless-devs/s -g
sudo s -v
```
No-sudo alternative (recommended in restricted environments):
```bash
npx -y @serverless-devs/s -v
```
## Configure Credentials (guided)
```bash
sudo s config add
```
Choose `Alibaba Cloud (alibaba)`, provide `AccountID`, `AccessKeyID`, `AccessKeySecret`, and set alias.
## Configure Credentials (command)
Use CLI args to configure credential alias in one command (non-interactive):
```bash
s config add -a default --AccessKeyID <AK> --AccessKeySecret <SK> -f
```
If using environment variables, inject them into the command (example):
```bash
s config add -a default -kl AccessKeyID,AccessKeySecret -il ${ALIBABA_CLOUD_ACCESS_KEY_ID},${ALIBABA_CLOUD_ACCESS_KEY_SECRET} -f
```
Or use Serverless Devs convention JSON environment variable (example):
```bash
export default_serverless_devs_key='{\"AccountID\":\"<AccountID>\",\"AccessKeyID\":\"<AK>\",\"AccessKeySecret\":\"<SK>\"}'
```
Reference in `s.yaml`:
```yaml
access: default_serverless_devs_key
```
## Initialize Example (Python)
```bash
sudo s init start-fc3-python
cd start-fc3-python
```
Initialization creates `s.yaml`, `code/`, and `readme.md`; edit `code/index.py` for function logic.
## Deploy, Invoke, and Remove
```bash
sudo s deploy
sudo s invoke -e "test"
sudo s remove
```
## Custom Domain Binding (Avoid Default Domain Forced Download)
> Note: FC default domain adds `Content-Disposition: attachment`, causing...generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.