This topic describes how to download and install faascmd.


Before you install faascmd, make sure that the following operations are complete:
  1. The AccessKey ID and AccessKey secret of the RAM user are obtained. For more information, see Create an AccessKey.
  2. Python is installed and the version of SDK for Python is checked. The procedure is as follows:
    1. Run the python -V command to check whether the Python version is 2.7.x.
    2. Run the following commands to install Python modules:
      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
    3. Run the following command to check whether the version of aliyun-python-sdk-core is 2.11.0 or later:
      cat /usr/lib/python2.7/site-packages/aliyunsdkcore/
      Note If the version is earlier than 2.11.0, run the pip install --upgrade aliyun-python-sdk-core command to upgrade aliyun-python-sdk-core to the latest version.


  1. Log on to the instance. Run the wget command in any directory to download faascmd.
    Note Record the directory. When you configure the faascmd tool, you must add the absolute path of the directory where faascmd is located to the PATH variable.
  2. Run the following command to make faascmd executable:
    chmod +x faascmd