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

How to get the current org reference? #177

@pawel-id

Description

@pawel-id

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions