Light Logo
CLI (v0.40.0)Reference

wriftai authenticated-user update

CLI reference for wriftai authenticated-user update

wriftai authenticated-user update

Update the authenticated user

Synopsis

Update the authenticated user

Only the fields provided via flags will be updated Fields not specified will remain unchanged

To clear a field's value (set it to nil), use the corresponding --clear-* flag For example, use --clear-name to set the authenticated user's name to nil

Note: You cannot use both a value flag (e.g., --name) and its corresponding clear flag (e.g., --clear-name) at the same time

wriftai authenticated-user update [flags]

Examples

  Update the authenticated user's name
  $ wriftai authenticated-user update --name "John Doe"

  Clear the authenticated user's name
  $ wriftai authenticated-user update --clear-name

  Update and clear multiple fields in a single command
  $ wriftai authenticated-user update \
    --bio "Updated bio" \
	--company Sych
    --clear-location
	--clear-name

Options

      --bio string        New biography of the user
      --clear-bio         Clear the user's bio
      --clear-company     Clear the user's company
      --clear-location    Clear the user's location
      --clear-name        Clear the user's name
      --company string    New company of the user
  -h, --help              help for update
      --location string   New location of the user
      --name string       New name of the user
  -o, --output format     Set output format. Supported formats: json, yaml (default json)
      --urls strings      New URLs associated with the user (comma-separated)
      --username string   New username of the user

Options inherited from parent commands

      --debug   Enable debug mode

SEE ALSO