Skip to content
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

Add a possibility for a opening a visualforce page (preview) directly from sfdx #1386

Closed
fodilo opened this issue Jan 31, 2022 · 4 comments
Closed
Labels
feature Issue or pull request for a new feature

Comments

@fodilo
Copy link

fodilo commented Jan 31, 2022

What are you trying to do

  • I want to have a command for previewing a visualforce page directly from sfdx.
    for example having this command :
    sfdx force:source:open -f path/to/myvfpage --visualforce
    the result will preview directly a visualforce page on the browser in the next url :
    https:myorg:/apex/myvfpage

Describe the solution you'd like

  • Modify the already existed command with adding a flag (--visualforce) and the path should be pointed to a visualforce page.

Additional context

  • for future use it could be used directly from VS code visualforce extension.
@fodilo fodilo added the feature Issue or pull request for a new feature label Jan 31, 2022
@github-actions
Copy link

Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.

@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-10514651

@mshanemc
Copy link
Contributor

mshanemc commented Feb 1, 2022

I haven't heard that request before. The code for the source:open command is here (it only does flexipages today, but you could add vf).

You'll see it's checking the type from the filepath, so you wouldn't need to specify --visualforce

Alternatively, sfdx force:org:open -p apex/myvfpage gets you pretty close.

@iowillhoit
Copy link
Contributor

This has been released in the latest (stable) release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issue or pull request for a new feature
Projects
None yet
Development

No branches or pull requests

4 participants