0
0

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 3 years have passed since last update.

既存の管理パッケージのソース形式への変換

Last updated at Posted at 2020-05-25

開発者ドキュメントだけで手を動かそうとして地味に↓のエラーでハマったので備忘メモ

ERROR running force:mdapi:convert: This command is required to run from within an SFDX project.

コマンドの流れ

  1. プロジェクトDir作成
    sfdx force:project:create -n <SFDXプロジェクト名>

  2. ソース取得

sfdx force:mdapi:retrieve -s -r ./temp -u <ログインID> -p <パッケージ名>```

3. ソース展開
tempディレクトリ内に取得されたzipファイルを展開

4. 変換
```cd <手順1.で作成したSFDXプロジェクト名>
sfdx force:mdapi:convert -r ../temp```

### 参考
* [開発者ドキュメント](https://developer.salesforce.com/docs/atlas.ja-jp.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_retrieve_man_pack.htm)
* [フォーラム記事](https://developer.salesforce.com/forums/?id=9060G000000MQqgQAG)
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?