Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

How to get the current org reference? #177

Open
pawel-id opened this issue Oct 31, 2022 · 0 comments
Open

How to get the current org reference? #177

pawel-id opened this issue Oct 31, 2022 · 0 comments

Comments

@pawel-id
Copy link

In our project we have a few bare scripts which do some code preparation before deployment. They check org type (production or not) and do some metadata amendments which depends on the org data (e.g. inserting usernames from that particular org).

I found this feature to create sfdx hooks. It would be great to rewrite our scripts into hooks. The challenge is that we need current org reference within the hook. I.e. such object https://forcedotcom.github.io/sfdx-core/modules/org.html in similar manner like in plain SfdxCommand object where we can reference this.org

Can anyone please advice how to get it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant