Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: wry:file:replace is not a sfdx command #3

Open
dieffrei opened this issue Dec 5, 2019 · 12 comments
Open

Warning: wry:file:replace is not a sfdx command #3

dieffrei opened this issue Dec 5, 2019 · 12 comments

Comments

@dieffrei
Copy link

dieffrei commented Dec 5, 2019

After success on installation seems that the plugin is not working.
I got the error:
› Warning: wry:file:replace is not a sfdx command.
Did you mean plugins:update? [y/n]:
› Error: Run sfdx help for a list of available commands.

@billv5w
Copy link

billv5w commented Jan 7, 2020

I got the same error. Any solution yet?

@iguerini
Copy link

Same error here.

@RandyTrigg
Copy link

I'm getting this same error. When I run 'sfdx plugins', the listing includes:

sfdx-wry-plugin 0.0.11

so everything seems okay. Is there maybe an alternative way to invoke wry:file:replace?

@paulie4
Copy link

paulie4 commented Apr 24, 2020

The problem for me was that the entire lib directory for the plugin was missing, possibly because the existing GitHub code no longer compiles. I'm using Arch Linux, so I had to install the ts-node pacman package, and I also had to install a number of npm packages:

npm i -D nyc
npm i -D @salesforce/dev-config
npm i -D @salesforce/command
npm i -D @salesforce/core
npm i -D @salesforce/ts-types
npm i -D @types/node

Unfortunately, there were a lot of compilation errors, so I had to make the following changes so it would compile: #4

After tsc --build tsconfig.json successfully compiled the files, I ran this to put the missing lib directory where it was supposed to go:
cp -R lib ~/.local/share/sfdx/node_modules/sfdx-wry-plugin/

@Smokushka
Copy link

The problem for me was that the entire lib directory for the plugin was missing, possibly because the existing GitHub code no longer compiles. I'm using Arch Linux, so I had to install the ts-node pacman package, and I also had to install a number of npm packages:

npm i -D nyc
npm i -D @salesforce/dev-config
npm i -D @salesforce/command
npm i -D @salesforce/core
npm i -D @salesforce/ts-types
npm i -D @types/node

Unfortunately, there were a lot of compilation errors, so I had to make the following changes so it would compile: #4

After tsc --build tsconfig.json successfully compiled the files, I ran this to put the missing lib directory where it was supposed to go:
cp -R lib ~/.local/share/sfdx/node_modules/sfdx-wry-plugin/

Thanks, @paulie4

the solution you suggested worked for me but only if I'm referencing RecordType as "$R{RecordType.SobjectType.DeveloperName}".

If I'm going with the standard sfdx:data:tree:export format for the RecordType, "wry:file:replace" command does nothing (not even throwing an error).
Haven't you looked at this issue by any chance?

Thanks,
Alex

@paulie4
Copy link

paulie4 commented May 14, 2020

Hi Alex. I'm sorry, but I know almost nothing about this stuff. All I did was fix what was needed to get https://github.com/Vchalem/Health-Cloud---ADK to run (and it had its own problems). What are the details of the error you are getting, and could you come up with a minimal reproduction test case?

@Esya
Copy link

Esya commented Sep 6, 2020

Cleaner workaround - use a git submodule :

mkdir utils
git submodule add [email protected]:billryoung/sfdx-wry-plugin.git utils/sfdx-wry-plugin 
sfdx plugins:link utils/sfdx-wry-plugin 

@iandrosov
Copy link

I am not sure if this tool still used, did not see any options for this built into DX yet.
This issues still exist with sfdx-cli/7.82.0-3d0c527ac6 darwin-x64 node-v12.18.3
Warning: wry:files:replace is not a sfdx command.
Did you mean plugins:update? [y/n]: n
and using submodules as noted by @Esya does not work iether there is install access to git repo error

@Esya
Copy link

Esya commented Jan 4, 2021

I am not sure if this tool still used, did not see any options for this built into DX yet.
This issues still exist with sfdx-cli/7.82.0-3d0c527ac6 darwin-x64 node-v12.18.3
Warning: wry:files:replace is not a sfdx command.
Did you mean plugins:update? [y/n]: n
and using submodules as noted by @Esya does not work iether there is install access to git repo error

What's the error you're getting exactly? We still use it that way and it works for us. Please paste the whole terminal log (commands and outputs)

@Esya
Copy link

Esya commented Jan 4, 2021

You're supposed to add this repo as a git submodule to your current project, not to itself

In your error the cloning fails, possibly because of that, but that's a git error. Just add this repo as a submodule to your own repository.

Check online how to add submodules to a git repository, then just run the link command, it works fine

@iandrosov
Copy link

iandrosov commented Jan 5, 2021

@Esya I resolved the issue with git and submodule and the link is working now, for a regular http set up this worked:

git clone https://github.com/billryoung/sfdx-wry-plugin.git
cd sfdx-wry-plugin
mkdir utils
git submodule add https://github.com/billryoung/sfdx-wry-plugin.git utils/sfdx-wry-plugin
sfdx plugins:link utils/sfdx-wry-plugin

@slaght
Copy link

slaght commented Aug 15, 2022

Hate to bump this thread, but the new CLI version (7.163.0) appears to have broken the plugin in the same way and the above workaround no longer works. There is an issue open in the cli repo (forcedotcom/cli#1664) for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants