Closed happypoulp closed 3 years ago
Hi @happypoulp, thanks for reporting this. We're currently investigating why this does not work. I'll keep you updated here
on my tries in keys list
the --query
couldn't work but the --q
works if that helps
Hi @happypoulp, we released a new client version(https://github.com/phrase/phrase-cli/releases/tag/2.0.27) that supports batch actions like deleting multiple keys by --query. The problem was that 2 actions were mapped to the same command. This is now changed and you can use phrase keys delete-collection
phrase keys
Keys API
Usage:
phrase keys [command]
Available Commands:
create Create a key
delete Delete a key
delete-collection Delete collection of keys
list List keys
search Search keys
show Get a single key
tag Add tags to collection of keys
untag Remove tags from collection of keys
update Update a key
Wonderful, thanks!
Hello,
It looks like we should be able to delete a collection of keys via cli using the syntax described here: https://developers.phrase.com/api/#delete-/projects/{project_id}/keys (for Cli v2):
but when using it I get this error:
The
query
flag is not mentioned as a valid one in the usage help text that the CLI prints.Is it still possible / allowed to delete keys using a pattern like
--query 'mykey*
? If not, how can I delete a collection of keys?Note that I am using latest Cli version
2.0.20
.Thanks!