xysfdx use docker mode to develope sfdx.

Posted by ExiaHuang on January 3, 2020

use docker mode to develope sfdx

vscode config

1
2
3
4
5
6
{
    "xysfdx.shellMode": "docker",
    "xysfdx.shellPath": "",
    "xysfdx.dockerContainer": "${lowercaseWorkspaceName}_sfdx_1",
    "xysfdx.dockerAppRoot": "/app/sfdx"
}

How to use docker ?

  1. pull images : docker: pull image exiasfdc/sfdx

xysfdx-docker-image

  1. create container : docker: create sfdx container

xysfdx-docker-container

  1. use docker shell : docker: attach docker shell

xysfdx-docker-bash

then , use the xysfdx to develope sfdx.

attention

  • can not use force:auth:web:login or force:auth:web:login:setdefaultusername
  • can not use force:project:create
  • use xy:auth:username:login to auth