Title: CLI command generates error
Last modified: October 23, 2023

---

# CLI command generates error

 *  Resolved [Keith a.k.a. K j A M](https://wordpress.org/support/users/kjam/)
 * (@kjam)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/cli-command-generates-error/)
 * I used WinSCP to run the CLI command “wp csp generate” and it appears to start
   working before generating the error “invalid file ID”. I checked with Siteground
   to see if they were blocking it and they ran the same command on a separate client
   and got the same error.
 * I’ve reached out to support for WinSCP and they’re miffed as well. Both seem 
   to think this might be an invalid command. They also suggested running it on 
   PuTTY, which I have not done yet because I’m clueless.
 * All this stuff is new to me and honestly, I can identify most everything that
   needs to be given permission but have no idea what should be inline or otherwise.
   Everything mucks up including the Google fonts, which you already have autofilled.
   It’s why I wanted to use the other option to generate it for me.
 * Any suggestions on a different client to use and/or perhaps the command is incorrect?
   I’m stumped.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcli-command-generates-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kevin Pirnie](https://wordpress.org/support/users/kevp75/)
 * (@kevp75)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/cli-command-generates-error/#post-17152455)
 * The command is correct.
 * You should certainly not be relying on it, as I state a few times it is unreliable
   at best, in fact my plans are to remove it in the next version.
 * All that error means is the command encountered an internal URL that was not 
   tied to a WordPress Post ID, and can be ignored.
 * Please understand, that I cannot help generate your content security policy for
   your website. I am a freelancer and helping in this fashion would be a conflict
   of interest unless I am hired to do so. Please do note, I have found that this
   can be anywhere from a 20 minute process up to an 8 hour process.

Viewing 1 replies (of 1 total)

The topic ‘CLI command generates error’ is closed to new replies.

 * ![](https://ps.w.org/security-header-generator/assets/icon-256x256.png?rev=3128304)
 * [Security Header Generator](https://wordpress.org/plugins/security-header-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/security-header-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/security-header-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/security-header-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/security-header-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/security-header-generator/reviews/)

## Tags

 * [cli](https://wordpress.org/support/topic-tag/cli/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kevin Pirnie](https://wordpress.org/support/users/kevp75/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/cli-command-generates-error/#post-17152455)
 * Status: resolved