Is it possible to use the ArcToolbox functions to interact with ArcGIS Online?
Or is ArcGIS Python API our only option?
I want to use the arcpy.management.CopyFeatures function to copy features from a local FGDB to AGOL.
arcpy.management.CopyFeatures("PROJECTS", r"https:\\services6.arcgis.com\X2SVGCoWmow4xMI3\arcgis\rest\services\PROJECTS\FeatureServer\PROJECTS", '', None, None, None)when I execute this command in ArcGIS Pro I get this error:

Does the ArcToolbox work with ArcGIS Online?