quote>
<pre><code class="language-TypeScript">import { spfi } from &quot;@pnp/sp&quot;;
import &quot;@pnp/sp/webs&quot;;
import &quot;@pnp/sp/lists&quot;;
import &quot;@pnp/sp/fields&quot;;

const sp = spfi(...);

// create a new multi-line text field called 'My Field' in web
const field = await sp.web.fields.addMultilineText(&quot;My Field&quot;, { NumberOfLines: 6, RichText: true, RestrictedMode: false, AppendOnly: false, AllowHyperlink: true, Group: &quot;My Group&quot; });
// create a new multi-line tex