# Longhorn commands backup list error

**URL:** <https://forums.suse.com/t/longhorn-commands-backup-list-error/19239>\
**Category:** SUSE Storage\
**Created:** [January 12, 2021, 4:52am UTC](https://forums.suse.com/t/longhorn-commands-backup-list-error/19239 "2021-01-12T04:52:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajithen](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@ajithen](https://forums.suse.com/u/ajithen)\
**Post date:** [January 12, 2021, 4:52am UTC](https://forums.suse.com/t/longhorn-commands-backup-list-error/19239/1 "2021-01-12T04:52:10Z")

</div>

I am working on longhorn backup automation using script/commands. Its working through web UI. Please help me the right tutorial for command lines and also while listing backup using command line getting below error, I have tried to with parameters “–secret” its not working

```auto
Command : longhorn backup ls --volume-only s3://<BUCKET_NAME>@REGION/

```

Getting Error like below

```auto

ERRO[0020] Fail to list s3: failed to list objects with param: {
  Bucket: "BUCKET_NAME",
  Delimiter: "/",
  Prefix: "/"
} response: {

} error: AWS Error: NoCredentialProviders no valid providers in chain. Deprecated.
        For verbose messaging see aws.Config.CredentialsChainVerboseErrors <nil> pkg=s3
ERRO[0020] failed to list objects with param: {
  Bucket: "BUCKET_NAME",
  Delimiter: "/",
  Prefix: "/"
} response: {

} error: AWS Error: NoCredentialProviders no valid providers in chain. Deprecated.
        For verbose messaging see aws.Config.CredentialsChainVerboseErrors <nil> 
failed to list objects with param: {
  Bucket: "BUCKET_NAME",
  Delimiter: "/",
  Prefix: "/"
} response: {

} error: AWS Error: NoCredentialProviders no valid providers in chain. Deprecated.
        For verbose messaging see aws.Config.CredentialsChainVerboseErrors <nil>
```

---

<div class="post-metadata">

**Author:** ![PhanLe0110](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/phanle0110/32/7022_2.png) [@PhanLe0110](https://forums.suse.com/u/PhanLe0110)\
**Post date:** [January 13, 2021, 5:54am UTC](https://forums.suse.com/t/longhorn-commands-backup-list-error/19239/2 "2021-01-13T05:54:25Z")

</div>

This is interesting! How do you get the above CLI?

We currently don’t have a official CLI for Longhorn. We are planning to build one soon. The feature is tracked at [Add Longhorn CLI · Issue #613 · longhorn/longhorn · GitHub](https://github.com/longhorn/longhorn/issues/613)

While waiting for the new CLI, we provide document on how to write Python automation script to controll Longhorn [Longhorn | Documentation](https://longhorn.io/docs/1.1.0/references/longhorn-client-python/)
