This topic describes how to download and install faascmd.
- Perform the following steps on the instance for which you want to run faascmd:
Run the following command to check that the Python version is 2.7.x.
Install the Python module by running the following commands:
pip -q install oss2 pip -q install aliyun-python-sdk-core pip -q install aliyun-python-sdk-faas pip -q install aliyun-python-sdk-ram
Run the following command to check that the aliyun-python-sdk-core version is 2.11.0 or later.
Note If the version is earlier than 2.11.0, run
pip install --upgrade aliyun-python-sdk-coreto upgrade aliyun-python-sdk-core to the latest version.
- Obtain the AccessKeyID and AccessKeySecret of the RAM user.
Log on to your instance and run
wget http://fpga-tools.oss-cn-shanghai.aliyuncs.com/faascmdin the current or any other directory to download faascmd.Note When you configure faascmd, you need to add the absolute path of the directory where faascmd is installed to the PATH variable.
Add executable permissions to faascmd by running the following command:
chmod +x faascmd