[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Functions](../../index.md) > [Developing in Bash](index.md) > Using the SDK

# Using the SDK for a function in Bash

The runtime comes with the [Yandex Cloud CLI](../../../cli/index.md) installed by default to work with the Yandex Cloud API.

The user works with Yandex Cloud services using the [service account](../../operations/function-sa.md) specified in the Bash function. This does not require any additional steps from the user: the utility automatically applies the service account.

For example, you can get a list of cloud folders using the following script:

```shell script
#!/bin/bash
set -e

HOME=/tmp yc --format json resource-manager folder list --cloud-id <cloud_ID> | jq -c  '{body:. | tostring}'
```

For the Yandex Cloud CLI commands to be executed successfully, use the `--folder-id` or `--cloud-id` parameters to specify the [folder](../../../resource-manager/operations/folder/get-id.md) or [cloud](../../../resource-manager/operations/cloud/get-id.md) ID, respectively.
 
The runtime comes with pre-installed [AWS CLI version 2](https://docs.aws.amazon.com/cli/index.html) to support [Yandex Cloud services compatible with the AWS API](../../../iam/concepts/authorization/access-key.md#supported-services). To use it:
1. [Create](../../../iam/operations/authentication/manage-access-keys.md#create-access-key) a static access key for the service account.
1. [Save](../../../lockbox/operations/secret-create.md) the static access key to a Yandex Lockbox secret.
1. [Provide](../../operations/function/lockbox-secret-transmit.md) the Yandex Lockbox secret to your function.

For more information and examples of commands, see [AWS Command Line Interface](../../../storage/tools/aws-cli.md) and the relevant documentation of AWS-compatible Yandex Cloud services.