Light Logo
CLI (v0.56.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-display-name to set the authenticated user's display name to nil

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

wriftai authenticated-user update [flags]

Examples

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

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

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

Options

      --bio string            New biography of the user
      --clear-bio             Clear the user's bio
      --clear-company         Clear the user's company
      --clear-display-name    Clear the user's display name
      --clear-location        Clear the user's location
      --company string        New company of the user
      --display-name string   New display name 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)

Options inherited from parent commands

      --debug   Enable debug mode

SEE ALSO