Skip to content

Conversation

@vincent-dfinity
Copy link
Contributor

@vincent-dfinity vincent-dfinity commented May 20, 2024

Description

Add a command for dfx:  dfx canister url <CANISTER> that gives the URL for a canister.

Fixes SDK-1613

How Has This Been Tested?

  • tested locally
  • e2e tests added at e2e/tests-dfx/canister_url.bash.

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@vincent-dfinity vincent-dfinity requested a review from lwshang May 20, 2024 07:33
@vincent-dfinity vincent-dfinity marked this pull request as ready for review May 22, 2024 07:39
@vincent-dfinity vincent-dfinity requested review from a team and chenyan-dfinity as code owners May 22, 2024 07:39
Copy link
Contributor

@lwshang lwshang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few items:

  • Show URL for remote canisters
  • CHANGELOG.md
  • docs/cli-reference/dfx-canister.mdx

@vincent-dfinity vincent-dfinity requested a review from a team as a code owner May 31, 2024 07:17
@vincent-dfinity vincent-dfinity requested a review from lwshang May 31, 2024 15:47
@vincent-dfinity vincent-dfinity requested a review from a team June 4, 2024 02:10
@lwshang lwshang enabled auto-merge (squash) June 11, 2024 14:21
@lwshang lwshang merged commit d257a09 into master Jun 11, 2024
@lwshang lwshang deleted the vincent/SDK-1613 branch June 11, 2024 14:56
rikonor pushed a commit that referenced this pull request Feb 3, 2025
* Get the principal id of the input canister.

* Print the URLs for both asset canisters and none-asset canisters.

* Handle the remote canisters, also run the formatter.

* Keep the output format consistent with `dfx deploy`.

* Move the shared `construct_frontend_url` and `construct_ui_canister_url` methods into a separate module under `dfx/src/util` folder.

* Add e2e tests for `dfx canister url` command.

* Fixed shellcheck.

* Fixed Lint builds.

* Remove the remote restriction, and add a test for the remote canister.

* Add changelog and document.

---------

Co-authored-by: Linwei Shang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants