# fc-default
**Repository Path**: devsapp/fc-default
## Basic Information
- **Project Name**: fc-default
- **Description**: 阿里云函数计算基本信息配置
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2021-05-17
- **Last Updated**: 2022-06-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Component description
中文文档 | English
## Set up
Command: `s cli fc-default set`
Subcommand:
- fc-endpoint
-enable-fc-endpoint
- fc-cluster-ip
- api-default-region
- api-default-version
E.g:
- To use a custom endpoint when deploying a function:
```bash
$ s cli fc-default set fc-endpoint xxx
$ s cli fc-default set enable-fc-endpoint true
```
- To use the test cluster ip when deploying the function: `s cli fc-default set fc-cluster-ip xxx`
## Obtain
Command: `s cli fc-default get`
default:
```yaml
fc-endpoint: xxx
enable-fc-endpoint: 'true'
```
## Upper component call
1. Get all configurations
```
const fcDefault = await core.loadComponent('devsapp/fc-default');
const res = await fcDefault.get();
```
2. Get the specified configuration
```
const fcDefault = await core.loadComponent('devsapp/fc-default');
const res = await fcDefault.get({args: "fc-endpoint"});
```
3. Force access to configuration
```
process.env['s-default-fc-endpoint'] = 'xxx'
const fcDefault = await core.loadComponent('fc-default');
const res = await fcDefault.get({args: "fc-endpoint"});
```