This topic describes how to download and install faascmd.


  • Perform the following steps on the instance for which you want to run faascmd:
    1. Run the following command to check that the Python version is 2.7.x.

      python -V

    2. 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
    3. Run the following command to check that the aliyun-python-sdk-core version is 2.11.0 or later.

      cat /usr/lib/python2.7/sitepackages/aliyunsdkcore/

      Note If the version is earlier than 2.11.0, run pip install --upgrade aliyun-python-sdk-core to upgrade aliyun-python-sdk-core to the latest version.
  • Obtain the AccessKeyID and AccessKeySecret of the RAM user.


  1. Log on to your instance and run wget in 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.
  2. Add executable permissions to faascmd by running the following command:

    chmod +x faascmd