<p>This is not currently possible with cardano-cli. There are executables in <a href="https://github.com/IntersectMBO/plutus" rel="nofollow noreferrer">plutus</a> that you may find useful. See <a href="https://cardano.stackexchange.com/a/11449/1071">https://cardano.stackexchange.com/a/11449/1071</a>.</p>

CC BY-SA 4.0
2024-01-22T03:12:12.570Z
2024-01-22T03:12:12.570Z
james
<p>I am using &quot;cardano-cli text-view decode-cbor --in-file mint.plutus&quot; which is just returning the cbor portion as a result.</p>
<p>Even tried saving an --out-file via: .json etc...But gives me Giberish when I &quot;cat&quot; it.</p>
<p>Any way to decode a plutus script in CLI instead of using an external source?</p>
<p>There is an existing post which talks about decoding &quot;transactions&quot; (which works for transactions), - but that does not work when I manipulate it with a plutus cbor script-&gt;
<a href="https://cardano.stackexchange.com/questions/4489/how-to-decode-cbor-which-is-generated-with-cardano-cli-build-command/4520#4520">How to decode cbor which is generated with cardano-cli build command?</a></p>

<cardano-cli><script><cbor><decode>
Using cardano-cli, is their any way to decode a plutus script which is in cbor?
# Using cardano-cli, is their any way to decode a plutus script which is in cbor?

(Asked by: username_0 on 2024-01-21)

I am using "cardano-cli text-view decode-cbor --in-file mint.plutus" which is just returning the cbor portion as a result.

Even tried saving an --out-file via: .json etc...But gives me Giberish when I "cat" it.

Any way to decode a plutus script in CLI instead of using an external source?

There is an existing post which talks about decoding "transactions" (which works for transactions), - but that does not work when I manipulate it with a plutus cbor script->
[How to decode cbor which is generated with cardano-cli build command?](https://cardano.stackexchange.com/questions/4489/how-to-decode-cbor-which-is-generated-with-cardano-cli-build-command/4520#4520)

**Tags:** cardano-cli, script, cbor, decode

---

## 1 answers

### Answer by username_1 on 2024-01-22. Score: 0 | Accepted answer

This is not currently possible with cardano-cli. There are executables in [plutus](https://github.com/IntersectMBO/plutus) that you may find useful. See <https://cardano.stackexchange.com/a/11449/1071>.


---

