user7627: I create a smart contract with Marlowe from https://play.marlowe-finance.io
I now want to deploy the contract in the preview testnet and later mainnet. I imagine it must be somehow converted into plutus script. And then use the plutus script to create transaction via cardano-cli.
Is there a way to convert Marlowe into plutus script?
If not, how can I interact with smart contract created from Marlowe in the testnet/mainnet?

user342: Here are four methods for running Marlowe on the blockchain, in increasing order of difficulty:

If you want to run your contract at the command line using marlowe-cli, install marlowe-cli and follow the instructions in the tutorial for running contracts with marlowe-cli. Here is a video lecture that provides an overview of marlowe-cli.
If you want to run your contract in a Jupyter notebook, then use git to clone github.com/input-output-hk/marlowe-cardano, run nix develop --command jupyter-lab from the marlowe-cli/ folder, open the notebook marlowe-cli/lectures/04-marlowe-cli-concrete.ipynb, and follow the instructions. Here is a video lecture of running a contract from within a Jupyter notebook.
If you want to run your contract from the command-line using the Marlowe Runtime backend, then follow the tutorial for Marlowe Runtime. Here is a video demonstration.
If you want to run your contract using Marlowe Lambda, follow the example for using Marlowe Lambda from the command line or study the example web application for Marlowe Lambda. Here is video of a command-line example and here is a video of a web app example.


Is there a way to convert Marlowe into plutus script? If not, how can I interact with smart contract created from Marlowe in the testnet/mainnet?

Marlowe contracts are run as datum in the Marlowe validator, which is a Plutus script that can run any Marlowe contract. There is no need (or possibility) of converting a Marlowe contract directly to Plutus.
Also, mainnet is disabled in the Marlowe tools, but you can alter the source code here and/or here to enable mainnet if you want to run there. Note that Marlowe's audit is not complete, so it is not advisable to run on mainnet.

7627: <p>I create a smart contract with Marlowe from <a href="https://play.marlowe-finance.io" rel="nofollow noreferrer">https://play.marlowe-finance.io</a></p>
<p>I now want to deploy the contract in the preview testnet and later mainnet. I imagine it must be somehow converted into plutus script. And then use the plutus script to create transaction via cardano-cli.</p>
<p>Is there a way to convert Marlowe into plutus script?
If not, how can I interact with smart contract created from Marlowe in the testnet/mainnet?</p>
 342: <p>Here are four methods for running Marlowe on the blockchain, in increasing order of difficulty:</p>
<ol>
<li><em>If you want to run your contract at the command line using <code>marlowe-cli</code>,</em> install <a href="https://github.com/input-output-hk/marlowe-cardano/blob/main/marlowe-cli/ReadMe.md#installation" rel="nofollow noreferrer"><code>marlowe-cli</code></a> and follow the instructions <a href="https://github.com/input-output-hk/marlowe-cardano/blob/main/marlowe-cli/lectures/04-marlowe-cli-concrete.md" rel="nofollow noreferrer">in the tutorial for running contracts with <code>marlowe-cli</code></a>. <a href="https://www.youtube.com/playlist?list=PLNEK_Ejlx3x0GbvCw-61e9VfRafBT1JSw" rel="nofollow noreferrer">Here</a> is a video lecture that provides an overview of <code>marlowe-cli</code>.</li>
<li><em>If you want to run your contract in a Jupyter notebook,</em> then use git to clone <a href="https://github.com/input-output-hk/marlowe-cardano" rel="nofollow noreferrer">github.com/input-output-hk/marlowe-cardano</a>, run <code>nix develop --command jupyter-lab</code> from the <code>marlowe-cli/</code> folder, open the notebook <a href="https://github.com/input-output-hk/marlowe-cardano/blob/main/marlowe-cli/lectures/04-marlowe-cli-concrete.ipynb" rel="nofollow noreferrer">marlowe-cli/lectures/04-marlowe-cli-concrete.ipynb</a>, and follow the instructions. <a href="https://www.youtube.com/watch?v=DmF7dIKmJMo&amp;list=PLNEK_Ejlx3x0GbvCw-61e9VfRafBT1JSw&amp;index=4" rel="nofollow noreferrer">Here</a> is a video lecture of running a contract from within a Jupyter notebook.</li>
<li><em>If you want to run your contract from the command-line using the Marlowe Runtime backend,</em> then follow the <a href="https://github.com/input-output-hk/marlowe-cardano/blob/main/marlowe-runtime/doc/tutorial.ipynb" rel="nofollow noreferrer">tutorial for Marlowe Runtime</a>. <a href="https://youtu.be/WlsX9GhpKu8" rel="nofollow noreferrer">Here</a> is a video demonstration.</li>
<li><em>If you want to run your contract using Marlowe Lambda,</em> follow <a href="https://github.com/input-output-hk/marlowe-lambda/blob/main/examples/zcb.ipynb" rel="nofollow noreferrer">the example for using Marlowe Lambda from the command line</a> or study <a href="https://github.com/input-output-hk/marlowe-lambda/tree/main/web" rel="nofollow noreferrer">the example web application for Marlowe Lambda</a>. <a href="https://youtu.be/huXbRyrmW60" rel="nofollow noreferrer">Here</a> is video of a command-line example and <a href="https://youtu.be/o5m_y5l_i_g" rel="nofollow noreferrer">here</a> is a video of a web app example.</li>
</ol>
<blockquote>
<p>Is there a way to convert Marlowe into plutus script? If not, how can I interact with smart contract created from Marlowe in the testnet/mainnet?</p>
</blockquote>
<p>Marlowe contracts are run as <code>datum</code> in the Marlowe validator, which is a Plutus script that can run any Marlowe contract. There is no need (or possibility) of converting a Marlowe contract directly to Plutus.</p>
<p>Also, <code>mainnet</code> is disabled in the Marlowe tools, but you can alter the source code <a href="https://github.com/input-output-hk/marlowe-cardano/search?q=guardMainnet" rel="nofollow noreferrer">here</a> and/or <a href="https://github.com/input-output-hk/marlowe-cardano/blob/3ffdbbd0b63b36e7a1277d53f07d3c4f0138dcf0/marlowe-runtime/src/Language/Marlowe/Runtime/Transaction/Server.hs#L177-L178" rel="nofollow noreferrer">here</a> to enable <code>mainnet</code> if you want to run there. Note that Marlowe's audit is not complete, so it is not advisable to run on <code>mainnet</code>.</p>
