# cli: Treat first argument as name of release channel to use for the cli \(\#10856\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a111b959d282d643d022b3c17b9f5ebba5aa8094)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a111b959d282d643d022b3c17b9f5ebba5aa8094

Requested commit: a111b959d282d643d022b3c17b9f5ebba5aa8094

Commit: a111b959d282d643d022b3c17b9f5ebba5aa8094

Tree: ab6e37a90aaa4e7ff2a115154798769a3c08884c

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
cli: Treat first argument as name of release channel to use for the cli (#10856)

With this commit, it is now possible to invoke cli with a release
channel of bundle as an argument. E.g: `zed stable some_arguments` will
find CLI binary of Stable channel installed on your machine and invoke
it with `some_arguments` (so the first argument is essentially omitted).

Fixes #10851

Release Notes:

- CLI now accepts an optional name of release channel as it's first
argument. For example, `zed stable` will always use your Stable
installation's CLI. Trailing args are passed along.
```

## Parents

- [189cece03efadc6cbec87eac53a71b4553c7a092](https://git.cafe/gitcafe/zed/commit/189cece03efadc6cbec87eac53a71b4553c7a092?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a111b959d282d643d022b3c17b9f5ebba5aa8094?format=markdown)
