Skip to content

Instantly share code, notes, and snippets.

View ksrawat's full-sized avatar

Kamal Rawat ksrawat

View GitHub Profile
I want to make sfdx scratch org manager (view, create, delete). Since LWC is open source, i want to make this using
open source LWC. and created app using following command:
npx lwc-create-app
Once the app is ready and running, i need to execute sfdx commands, in order to use that i want to do something as follows:
import {SfdxCommand} from '@salesforce/command';
But doing that throws error.
@ksrawat
ksrawat / getawsconfig.js
Last active September 29, 2017 18:39
This is a small node utilty to get aws metadata for e.g. get IAM secruity groups, AWS lambda roles and all the policies.
/*
This will save all the metadata in respective directories:
1. roles-config
2. attached-role-policies
3. securitygroups
* Make sure you have admin role which has full access like we are using list and describe API of node-aws-sdk
* All data is stored in json file
*/