I am interested in knowing how someone can pull SObject definitions, custom and standard, from a scratch org using the CLI, or otherwise, into a local directory e.g. .sfdx. Something similar to what vscode plugin for Salesforce does.
Which commands are related? How can someone go about it?