Skip to content

Instantly share code, notes, and snippets.

@Ezmyrelda
Created December 5, 2014 14:41
Show Gist options
  • Save Ezmyrelda/d2d1e7867a12ba5a514c to your computer and use it in GitHub Desktop.
Save Ezmyrelda/d2d1e7867a12ba5a514c to your computer and use it in GitHub Desktop.
chrome-cli commands
chrome-cli -h (Print help)
chrome-cli --help (Print help)
chrome-cli help (Print help)
chrome-cli list windows (List all windows)
chrome-cli list tabs (List all tabs)
chrome-cli list tabs -w <id> (List tabs in specific window)
chrome-cli list links (List all tabs' link)
chrome-cli list links -w <id> (List tabs' link in specific window)
chrome-cli info (Print info for active tab)
chrome-cli info -t <id> (Print info for specific tab)
chrome-cli open <url> (Open url in new tab)
chrome-cli open <url> -n (Open url in new window)
chrome-cli open <url> -i (Open url in new incognito window)
chrome-cli open <url> -t <id> (Open url in specific tab)
chrome-cli open <url> -w <id> (Open url in new tab in specific window)
chrome-cli close (Close active tab)
chrome-cli close -w (Close active window)
chrome-cli close -t <id> (Close specific tab)
chrome-cli close -w <id> (Close specific window)
chrome-cli reload (Reload active tab)
chrome-cli reload -t <id> (Reload specific tab)
chrome-cli back (Navigate back in active tab)
chrome-cli back -t <id> (Navigate back in specific tab)
chrome-cli forward (Navigate forward in active tab)
chrome-cli forward -t <id> (Navigate forward in specific tab)
chrome-cli activate -t <id> (Activate specific tab)
chrome-cli presentation (Enter presentation mode with the active tab)
chrome-cli presentation -t <id> (Enter presentation mode with a specific tab)
chrome-cli presentation exit (Exit presentation mode)
chrome-cli size (Print size of active window)
chrome-cli size -w <id> (Print size of specific window)
chrome-cli size <width> <height> (Set size of active window)
chrome-cli size <width> <height> -w <id> (Set size of specific window)
chrome-cli position (Print position of active window)
chrome-cli position -w <id> (Print position of specific window)
chrome-cli position <x> <y> (Set position of active window)
chrome-cli position <x> <y> -w <id> (Set position of specific window)
chrome-cli source (Print source from active tab)
chrome-cli source -t <id> (Print source from specific tab)
chrome-cli execute <javascript> (Execute javascript in active tab)
chrome-cli execute <javascript> -t <id> (Execute javascript in specific tab)
chrome-cli chrome version (Print Chrome version)
chrome-cli version (Print application version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment