-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #421 from NodeSecure/enhance-commands-docs
docs: enhance CLI commands & usage examples
- Loading branch information
Showing
17 changed files
with
137 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
## 📝 Command `lang` | ||
|
||
The `lang` command allows you to set your preferred language. Use this command to customize the language used in the CLI or Web interfaces | ||
The `lang` command allows you to set your preferred language. Use this command to customize the language used in the CLI or Web interfaces. | ||
|
||
<p align="center"> | ||
<img src="./images/lang.PNG"> | ||
</p> | ||
|
||
> [!NOTES] | ||
> Feel free to help us translate this tool into other languages. Translations can be found in the root `./i18n` folder. | ||
## 📜 Syntax | ||
|
||
```bash | ||
nsecure lang | ||
$ nsecure lang | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
## 📝 Command `scorecard` | ||
|
||
The `scorecard` command is used to generate an OpenSSF scorecard for a specific GIT repository or NPM package. This command evaluates the repository and provides a security score based on various criteria. | ||
The `scorecard` command is used to generate an [OpenSSF scorecard](https://openssf.org/projects/scorecard/) for a specific GIT repository or NPM package. | ||
|
||
This command evaluates the repository and provides a security score based on various criteria. | ||
|
||
<p align="center"> | ||
<img src="./images/scorecard.PNG"> | ||
</p> | ||
|
||
Under the hood it use our [OpenSSF scorecard SDK for Node.js](https://github.com/NodeSecure/ossf-scorecard-sdk) | ||
|
||
## 📜 Syntax | ||
|
||
```bash | ||
nsecure scorecard [repository] | ||
$ nsecure scorecard [repository] | ||
``` | ||
|
||
## ⚙️ Available Options | ||
|
||
| Name | Shortcut | Default Value | Description | | ||
|---|---|---|---| | ||
| `--vcs` | | `github` | Specify the version control system (VCS) used by the repository. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
## 📝 Command `summary` | ||
|
||
The `summary` command is used to generate a summarized report from a JSON security report. This command provides a concise overview of the security findings. | ||
The `summary` command generates a summarized report from a specified JSON payload. | ||
|
||
<p align="center"> | ||
<img src="./images/summary.PNG"> | ||
</p> | ||
|
||
## 📜 Syntax | ||
|
||
```bash | ||
nsecure summary [json] | ||
$ nsecure summary [json] | ||
``` | ||
|
||
> [!NOTE] | ||
> If the `[json]` property is omitted, the command will default to searching for a `nsecure-result.json` file in the current working directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.