update the docs for rearranged args#372
Closed
adamspofford-dfinity wants to merge 3 commits intomasterfrom
Closed
Conversation
✅ Deploy Preview for icportal ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
ghost
reviewed
Nov 23, 2022
| 2. Assign the `ic_admin` principal the `admin` role by running a command similar to the following using Candid syntax: | ||
|
|
||
| dfx canister --wallet=$(dfx identity get-wallet) call access_hello assign_role '((principal "c5wa6-3irl7-tuxuo-4vtyw-xsnhw-rv2a6-vcmdz-bzkca-vejmd-327zo-wae"),opt variant{admin})' | ||
| dfx canister call --wallet="$(dfx identity get-wallet)" access_hello assign_role '((principal "c5wa6-3irl7-tuxuo-4vtyw-xsnhw-rv2a6-vcmdz-bzkca-vejmd-327zo-wae"),opt variant{admin})' |
There was a problem hiding this comment.
Suggested change
| dfx canister call --wallet="$(dfx identity get-wallet)" access_hello assign_role '((principal "c5wa6-3irl7-tuxuo-4vtyw-xsnhw-rv2a6-vcmdz-bzkca-vejmd-327zo-wae"),opt variant{admin})' | |
| dfx canister call access_hello assign_role '((principal "c5wa6-3irl7-tuxuo-4vtyw-xsnhw-rv2a6-vcmdz-bzkca-vejmd-327zo-wae"),opt variant{admin})' --wallet="$(dfx identity get-wallet)" |
ghost
reviewed
Nov 23, 2022
|
|
||
| ``` bash | ||
| dfx --identity Miles canister call rust_profile_backend update '(record {name = "Miles"; description = "Great Dane"; keywords = vec {"Boston"; "mantle"; "three-legged"}})' | ||
| dfx canister call --identity Miles rust_profile_backend update '(record {name = "Miles"; description = "Great Dane"; keywords = vec {"Boston"; "mantle"; "three-legged"}})' |
There was a problem hiding this comment.
Suggested change
| dfx canister call --identity Miles rust_profile_backend update '(record {name = "Miles"; description = "Great Dane"; keywords = vec {"Boston"; "mantle"; "three-legged"}})' | |
| dfx canister call rust_profile_backend update '(record {name = "Miles"; description = "Great Dane"; keywords = vec {"Boston"; "mantle"; "three-legged"}})' --identity Miles |
ghost
reviewed
Nov 23, 2022
|
|
||
| ``` bash | ||
| dfx --identity Miles canister call rust_profile_backend getSelf | ||
| dfx canister call --identity Miles rust_profile_backend getSelf |
There was a problem hiding this comment.
Suggested change
| dfx canister call --identity Miles rust_profile_backend getSelf | |
| dfx canister call rust_profile_backend getSelf --identity Miles |
ghost
suggested changes
Nov 23, 2022
ghost
left a comment
There was a problem hiding this comment.
Just a couple spots left where --network can go after all of the positionals
Contributor
|
This PR appears to be outdated/not needed. Closing this PR to clean up the repo. Please feel free to reopen if you think this should be revisited. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dfinity/sdk#2369 moved middle-of-the-command named arguments to the end of the command. This updates the docs to reflect the new CLI interface. Do not merge before dfx 0.12