Socket
Book a DemoInstallSign in
Socket

playground-export

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playground-export

Download your playground project.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

Playground Export CLI Plugin

This is a CLI plugin to download your LWC Playground projects and optionally convert them to an SFDX project.

Usage

To install the plugin run:

$ sfdx plugin:install playground-export

To export a project to a folder run the following. The value is found in the url: https://developer.salesforce.com/docs/component-library/tools/playground/<ID>/1/edit

$ sfdx playground:export -i <ID> --name myproj

If you want to have the project pushed to a git repo set the remote flag. Make sure this is a completely empty repository.

$ sfdx playground:export -i <ID> --name myproj --remote https://github.com/username/repo

If you want to export the modules as a SFDX project set the template flag.

$ sfdx playground:export -i <ID> --name myproj --template sfdx

Documentation

  <!-- install -->
  <!-- usage -->
$ npm install -g playground-export
$ sfdx COMMAND
running command...
$ sfdx (-v|--version|version)
playground-export/1.2.0 darwin-x64 node-v12.18.1
$ sfdx --help [COMMAND]
USAGE
  $ sfdx COMMAND
...

sfdx playground:export -i <string> [-n <string>] [--template <string>] [--internal] [--remote <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

print a greeting and your org IDs

USAGE
  $ sfdx playground:export -i <string> [-n <string>] [--template <string>] [--internal] [--remote <string>] [--json] 
  [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -i, --id=id                                                                       (required) the id of the project to
                                                                                    download. The url is like
                                                                                    https://developer.salesforce.com/doc
                                                                                    s/component-library/tools/playground
                                                                                    /<id>/1/edit

  -n, --name=name                                                                   The name of your project

  --internal                                                                        Use the internal version of
                                                                                    playground

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

  --remote=remote                                                                   The url of the git repository that
                                                                                    you want to push your project to

  --template=template                                                               The template to use. valid options
                                                                                    are sfdx and none

EXAMPLES
  $ sfdx playground:export --id 7yD2PkxT7
  $ sfdx playground:export --id 7yD2PkxT7 --name MyProject
  $ sfdx playground:export --id 7yD2PkxT7 --template sfdx

See code: lib/commands/playground/export.js

Keywords

sfdx-plugin

FAQs

Package last updated on 24 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts