Skip to content

Commit 0d02cb6

Browse files
author
Pelle Wessman
committed
Improved documentation
1 parent dfa8422 commit 0d02cb6

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Pelle Wessman
3+
Copyright (c) 2022 Socket Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,31 @@ socket report create package.json
2020

2121
## Commands
2222

23-
* `info <package@version>` - looks up issues for a package
24-
* `report create` - creates a report
23+
* `socket info <package@version>` - looks up issues for a package
24+
* `socket report create` - uploads the specified `package.json` and/or `package-lock.json` to create a report on [socket.dev](https://socket.dev/). If only one of a `package.json`/`package-lock.json` has been specified, the other will be automatically found and uploaded if it exists
25+
26+
## Flags
27+
28+
### Action flags
29+
30+
* `--dry-run` - the `socket report create` supports running the command without actually uploading anything. All CLI tools that perform an action should have a dry run flag
31+
32+
### Output flags
33+
34+
* `--json` - outputs result as json which you can then pipe into [`jq`](https://stedolan.github.io/jq/) and other tools
35+
* `--markdown` - outputs result as markdown which you can then copy into an issue, PR or even chat
36+
37+
### Other flags
38+
39+
* `--debug` - outputs additional debug output. Great for debugging, geeks and us who develop. Hopefully you will never _need_ it, but it can still be fun, right?
40+
* `--help` - prints the help for the current command. All CLI tools should have this flag
41+
* `--version` - prints the version of the tool. All CLI tools should have this flag
2542

2643
## Environment variables
2744

2845
* `SOCKET_SECURITY_API_KEY` - if set, this will be used as the API-key
2946

47+
## Contributing
3048
### Environment variables for development
3149

3250
* `SOCKET_SECURITY_API_BASE_URL` - if set, this will be the base for all API-calls. Defaults to `https://api.socket.dev/v0/`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "@socketsecurity/cli",
33
"version": "0.1.1",
44
"description": "CLI tool for Socket.dev",
5-
"homepage": "http://github.com/SocketDev/socket-commando",
5+
"homepage": "http://github.com/SocketDev/socket-cli-js",
66
"repository": {
77
"type": "git",
8-
"url": "git://github.com/SocketDev/socket-commando.git"
8+
"url": "git://github.com/SocketDev/socket-cli-js.git"
99
},
1010
"keywords": [],
1111
"author": {

0 commit comments

Comments
 (0)