|
20 | 20 |
|
21 | 21 | Command line interface to DeepSource |
22 | 22 |
|
23 | | -[](https://deepsource.io/gh/deepsourcelabs/cli/?ref=repository-badge)[](https://circleci.com/gh/deepsourcelabs/cli) |
| 23 | + |
| 24 | +[](https://deepsource.io/gh/deepsourcelabs/cli/?ref=repository-badge) |
24 | 25 | [](https://gitopia.org/#/WU8MwK_wNu7had5xKwuD2dilKn9gzCFH6carv-QmIKs/deepsource-cli) |
25 | 26 |
|
26 | | -### Usage |
| 27 | +## Installation |
27 | 28 |
|
| 29 | +### macOS |
| 30 | + |
| 31 | +DeepSource CLI is available on macOS via [Homebrew](https://brew.sh/): |
| 32 | + |
| 33 | +```sh |
| 34 | +brew install deepsourcelabs/cli/deepsource |
| 35 | +``` |
| 36 | +### Binary Installation |
| 37 | + |
| 38 | +```sh |
| 39 | +curl https://deepsource.io/cli | sh |
28 | 40 | ``` |
29 | | -DeepSource Command Line Interface v0.x.x |
| 41 | +This script will detect the operating system and architecture and puts deepsource binary in `./bin/deepsource`. |
| 42 | + |
| 43 | +## Configuring DSN |
| 44 | + |
| 45 | +In order to report test-coverage to DeepSource using the `report` command, an environment variable named as `DEEPSOURCE_DSN` has to |
| 46 | +be set. It's value will be available under 'Settings' tab of the repository page. |
| 47 | + |
| 48 | +## Usage |
30 | 49 |
|
| 50 | +The CLI provides access to a wide range of commands. Here is a list of the |
| 51 | +commands along with their brief description. |
| 52 | + |
| 53 | +``` |
31 | 54 | Usage: |
32 | 55 | deepsource <command> [<arguments>] |
33 | 56 |
|
34 | 57 | Available commands are: |
35 | | - report Report an artifact to an analyzer |
| 58 | + report Report an artifact to an analyzer |
| 59 | + config Generate and Validate DeepSource config |
| 60 | + help Help about any command |
| 61 | + issues Show the list of issues in a file in a repository |
| 62 | + repo Operations related to the project repository |
| 63 | + report Report artifacts to DeepSource |
| 64 | + version Get the version of the DeepSource CLI |
36 | 65 |
|
37 | 66 | Help: |
38 | | - Use 'deepsource <command> --help' for more information about the command. |
| 67 | + Use 'deepsource <command> --help/-h' for more information about the command. |
39 | 68 | ``` |
40 | 69 |
|
41 | | -### Documentation |
| 70 | +## Documentation |
| 71 | + |
| 72 | +For complete documentation, refer to the [CLI Documentation](https://deepsource.io/docs/cli/usage) |
| 73 | + |
| 74 | +## Feedback/Support |
| 75 | + |
| 76 | +Want to share any feedback or need any help regarding the CLI? Feel free to |
| 77 | +reach out to us at [support@deepsource.io](mailto:support@deepsource.io) or at |
| 78 | +our [Discord server](https://discord.gg/3aNjyD9k2q). |
| 79 | + |
| 80 | +## Community |
42 | 81 |
|
43 | | -[https://deepsource.io/docs/config/cli](https://deepsource.io/docs/config/cli.html) |
| 82 | +Interested in DeepSource and want to chat with the community? Feel free to join our [Discord server](http://deepsource.io/discord). |
44 | 83 |
|
45 | | -### Support |
| 84 | +## License |
46 | 85 |
|
47 | | -[support@deepsource.io](mailto:support@deepsource.io) |
| 86 | +Licensed under the [BSD 2-Clause "Simplified" License](https://github.com/deepsourcelabs/cli/blob/master/LICENSE). |
0 commit comments