--- title: Upgrade from v2 to v3 slug: nake9219 canonical_url: https://docs.coveo.com/en/nake9219/ collection: cli source_format: adoc --- # Upgrade from v2 to v3 The Coveo CLI is on an annual schedule of major releases. The main change in Coveo CLI v3 is to the versions of Node.js that are supported. ## Deprecations * Node.js v16 is no longer supported. * NPM versions prior to v10 are no longer supported. ## Breaking changes * The `coveo auth:token` command no longer takes the token as a flag. ## Upgrade guide . Ensure that you're using Node.js v18 or later (v20 recommended). . Ensure that you're using the latest version of NPM. . If you're using `coveo auth:token`, don't send the token as a flag: ** If you're using it on your own machine, you'll be asked to enter your token after you execute the command. ** If you're using it in a headless environment, you'll need to pipe the token in to the CLI. **Examples** * **With an environment variable:** Before: `coveo auth:token --token $MY_TOKEN` v3: `echo $MY_TOKEN | coveo auth:token` * **With a file:** Before: `coveo auth:token --token $(cat ./my-secret-file)` v3: `cat ./my-secret-file | coveo auth:token`