-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify Snaps CLI usage #1075
Clarify Snaps CLI usage #1075
Conversation
Preview published: 854-snaps-cli |
Preview published: 854-snaps-cli |
Preview published: 854-snaps-cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments. Overall just one syntactical issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -155,8 +148,9 @@ details the requirements of both `snap.manifest.json` and its relationship to `p | |||
You might need to modify some manifest fields manually. | |||
For example, if you change the location of the icon SVG file, you must update | |||
`source.location.npm.iconPath` to match. | |||
You can also use the [command line](../reference/cli/index.md) to update some fields for you. | |||
For example, `mm-snap build` or `mm-snap manifest --fix` updates `source.shasum`. | |||
You can also use the [Snaps CLI](../reference/cli/subcommands.md) to update some fields for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe... "You can also use ... to update some fields.
running `mm-snap manifest --fix` after creating your bundle. | ||
You may also benefit from running `mm-snap eval` to detect any SES issues up front. | ||
We recommend running [`yarn mm-snap manifest --fix`](../reference/cli/subcommands.md#m-manifest) | ||
after creating your bundle to make sure your manifest `shasum` value is correct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe... to make sure = to ensure
|
||
## Specify options | ||
|
||
You can specify options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this format is necessary. Maybe... "You can specify options either in the configuration file (...) or on the command line using ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a couple suggested edits.
The recommended Snaps quickstart method is to use
@metamask/create-snap
, which installs@metamask/snaps-cli
for you when you create a new Snap. This PR clarifies the command required to run the documented CLI subcommands and options (yarn mm-snap ...
), and also makes minor edits throughout the Snaps docs for clarity and consistency. Fixes #854.