title: Jenkins - How to put a job into specific view from the command line?
body: <p>I know how to create a job in Jenkins from the command line using jenkins-cli, but I don't know how to specify in  which view that new job to be. It get's created in no view.</p>
  
  <p>Is there a way to specify the view I want?<br/>
  or<br/>
  Is there a subsequent command to move my newly created job to some view?</p>
  
  <p>The documentation about the commands that jenkins-cli provides doesn't go in details for each command.</p>
  
  <p>For completeness, here are the commands:</p>
  
  <p>First login:</p>
  
  <pre><code>java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://jenkins.example.com:8080 login --username user
  Password: (I type the password here)
  Successfully loaded native POSIX impl.
  </code></pre>
  
  <p>Then the actual command:</p>
  
  <pre><code>java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://jenkins.example.com:8080 create-job NewJobName &lt; ~/jobs/template/config.xml
  </code></pre>
  
  <p>And the job gets created successfully.</p>