4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Visual Studio CodeでSalesforceの開発環境構築

Posted at

必要なツール

  • Visual Studio Code
  • Java 8 Platform, Standard Edition Development Kit
  • Salesforce CLI (バージョン 44.0 以上が必要)
  • Visual Studio Code プラグイン「Salesforce Extension Pack」

手順

1.Visual Studio Code をインストールする

Visual Studio Code は、macOS、Windows、または Linux が実行されているコンピュータにインストールできます。システム要件はかなり低いので、ほぼどのマシンでも実行できます。

使用しているオペレーティングシステム用の Visual Studio Code の最新バージョンをダウンロードしてインストールします。すでに Visual Studio Code がインストールされている場合は、再インストールする必要はありません。
Visual Studio Code を起動します。

2.Salesforce CLIをインストール

この記事に従って、Salesforce CLIをインストールする。

sfdx plugins --core

と入力した時にバージョン 44.0 以上ならばokです。

3.Visual Studio Code プラグイン「Salesforce Extension Pack」をインストール

VScodeの Code > Preference > Extentions から「Salesforce Extension Pack」をインストールする

4.ローカルにプロジェクトを作成する

コマンドパレットを開き(Ctrl+Shift+P/Cmd+Shift+P)、 SFDX: Create Project with Manifest を選択します。

5.組織に接続

コマンドパレットから、 SFDX: Authorize an Org を選択し、組織の名称を入力(任意の名前でOK)します。接続する組織を自由に選択できるので、trailhead等で勉強する時にも安心です。

VSCodeで以下のように出力されていれば接続できています。

Successfully authorized xxxx@exmaple.com with org ID 00DXXXXXXXXXXXXXXX
You may now close the browser
4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?