i\'m trying to create an empty changelist from command line using the command p4 change -i
but seems that this command does nothing, i don\'t get any error/succ
If you're using the command line interactively, the regular "p4 change" command is the way to go:
p4 change
This opens the changelist spec in your editor so you can fill it out, and saves the changelist when you save the file in your editor and exit it.
If you're scripting, you can use "p4 change -i" but you need to make sure to feed it a valid changelist form via stdin. The "p4 change -o" command gives you the same form you get from "p4 change" (via stdout instead of your editor), so all that's left is to fill out the description and/or modify the list of files to be included. The --field option is useful here:
p4 --field "Description=My pending change" change -o | p4 change -i
If you want the new changelist to be empty rather than inheriting open files from the default changelist, blank the Files field:
p4 --field "Description=My pending change" --field "Files=" change -o | p4 change -i