Work with the CLI on Windows

To run CLI commands in Splunk Enterprise on Windows, use PowerShell or the command prompt as an administrator.

  1. Open a PowerShell window or command prompt as an administrator.
  2. Change to the Splunk Enterprise bin directory.
  3. Run a Splunk command by typing in splunk followed by the subcommand and any required arguments.
CODE
C:\Program Files\Splunk\bin> splunk status
splunkd is running.
splunk helpers are running.

You can run many commands and perform many tasks from the Splunk Enterprise CLI. For help on using the CLI, see Get help with the CLINo Content found for /db/organizations/splunk/repositories/splunk-10_4/content/documents/Platform/Splunk/Splunk_Admin/GethelpwiththeCLI/GethelpwiththeCLI.dita#d77cb064_40a3_4681_98eb_3de3f9062f4c/Get_help_with_the_CLI.