# PTB CLI: How to input string

**URL:** <https://forums.sui.io/t/ptb-cli-how-to-input-string/49110>\
**Category:** General\
**Created:** [October 10, 2025, 12:44pm UTC](https://forums.sui.io/t/ptb-cli-how-to-input-string/49110 "2025-10-10T12:44:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![plyoteo](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@plyoteo](https://forums.sui.io/u/plyoteo)\
**Post date:** [October 10, 2025, 12:44pm UTC](https://forums.sui.io/t/ptb-cli-how-to-input-string/49110/1 "2025-10-10T12:44:02Z")

</div>

I am trying to create a simple NFT with the code below:

```bash
module ptb::name;

use std::string::{Self, String};

public struct Item has key, store {
    id: UID,
    name: String,
} 

public entry fun mint(
    name: vector<u8>,
    ctx: &mut TxContext) {
        let item = Item {
            id: object::new(ctx),
            name: string::utf8(name),
        };

        transfer::public_transfer(item, tx_context::sender(ctx));
} 

```

```bash
export PACKAGE=<Package ID>

sui client ptb \
--move-call $PACKAGE::name::mint "toulis"

```

I get the following error (regardless if the string input is unquoted, in single or double quotes):

```bash
Encountered error when building PTB:
  × Error when processing PTB
   ╭────
 1 │ --move-call 0x86f9a0b4f5d150a0697de655386f68e3e34e7915f42b5f5cf826501965f4d5f6::name::mint pikachu 
   · ───┬───
   · ╰── Unresolved identifier: 'pikachu'
   ╰────
  help: Did you mean 'brave-topaz'?

```

Any ideas on how to input a string with the PTB CLI?

Thank you

---

<div class="post-metadata">

**Author:** ![atha](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@atha](https://forums.sui.io/u/atha)\
**Post date:** [October 13, 2025, 12:26pm UTC](https://forums.sui.io/t/ptb-cli-how-to-input-string/49110/2 "2025-10-13T12:26:47Z")

</div>

hey, this is the official sui cli documentation on passing string arguments:

`https://docs.sui.io/references/cli/ptb#strings`

---

<div class="post-metadata">

**Author:** ![plyoteo](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@plyoteo](https://forums.sui.io/u/plyoteo)\
**Post date:** [October 14, 2025, 12:38pm UTC](https://forums.sui.io/t/ptb-cli-how-to-input-string/49110/3 "2025-10-14T12:38:45Z")

</div>

Thank you so much Atha. You made my week. What I was doing wrong was wrapping the input only inside double quotes (“pikachu”) as opposed to the correct way of input inside double quotes inside single quotes (‘“pikachu”’). At least for my 63 yrs and an utter programming heathen, totally counter-intuitive.

If I may impose a tad more, if I write a more elaborate code, where some functions have generic inputs, such as

```rust
public fun list<T: key + store>(
    shop: &mut Shop,
    item: T) {
        dof::add(&mut shop.id, true, item);
}

```

```rust
any suggestions on how to enter the type-args w/ PTB?

Thank you
Theodoros

```

---

<div class="post-metadata">

**Author:** ![atha](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@atha](https://forums.sui.io/u/atha)\
**Post date:** [October 16, 2025, 2:26pm UTC](https://forums.sui.io/t/ptb-cli-how-to-input-string/49110/5 "2025-10-16T14:26:23Z")

</div>

hey! just answered that on your question `https://forums.sui.io/t/ptb-cli-how-to-input-type-args/49114`
