{"record":{"id":"542c8d21adf38e6e","repo":"hashicorp/vagrant","slug":"this-command-was-not-invoked-properly-the-help-fo-542c8d","errorCode":null,"errorMessage":"This command was not invoked properly. The help for this command is available below. %{help}","messagePattern":"This command was not invoked properly\\. The help for this command is available below\\. %(.+?)","errorType":"exception","errorClass":"Vagrant::Errors::CLIInvalidUsage","httpStatus":null,"severity":"error","filePath":"plugins/commands/cloud/version/revoke.rb","lineNumber":32,"sourceCode":"            options = {}\n\n            opts = OptionParser.new do |o|\n              o.banner = \"Usage: vagrant cloud version revoke [options] organization/box-name version\"\n              o.separator \"\"\n              o.separator \"Revokes a version entry on Vagrant Cloud\"\n              o.separator \"\"\n              o.separator \"Options:\"\n              o.separator \"\"\n              o.on(\"-f\", \"--[no-]force\", \"Force revocation without confirmation\") do |f|\n                options[:force] = f\n              end\n            end\n\n            # Parse the options\n            argv = parse_options(opts)\n            return if !argv\n            if argv.size != 2\n              raise Vagrant::Errors::CLIInvalidUsage,\n                help: opts.help.chomp\n            end\n\n            if !options[:force]\n              @env.ui.warn(I18n.t(\"cloud_command.version.revoke_warn\", version: argv[1], box: argv.first))\n              cont = @env.ui.ask(I18n.t(\"cloud_command.continue\"))\n              return 1 if cont.strip.downcase != \"y\"\n            end\n\n            @client = client_login(@env)\n            org, box_name = argv.first.split('/', 2)\n            version = argv[1]\n\n            revoke_version(org, box_name, version, @client.token, options)\n          end\n\n          # Revoke release of box version\n          #","sourceCodeStart":14,"sourceCodeEnd":50,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/commands/cloud/version/revoke.rb#L14-L50","documentation":"Raised by `vagrant cloud version revoke` when the number of positional arguments is not exactly 2. Expected signature: `vagrant cloud version revoke <org/box-name> <version> [-f|--force]`; argv.size != 2 after option parsing raises Vagrant::Errors::CLIInvalidUsage with the help text in %{help}. The first arg is split on '/' into org and box name, the second is the version to revoke.","triggerScenarios":"`vagrant cloud version revoke` with 0, 1, or 3+ positional args, e.g. `vagrant cloud version revoke hashicorp/bionic64` (forgot the version) or `vagrant cloud version revoke hashicorp bionic64 1.0.0` (split the org/box into two words).","commonSituations":"Revoking a bad version in a hurry and omitting the version token; forgetting that org and box must be one slash-joined word; copy-pasting from docs that show a placeholder like <org>/<box> <version> without filling both.","solutions":["Re-run with exactly two positional arguments: `vagrant cloud version revoke <org>/<box-name> <version>`.","Run `vagrant cloud version revoke -h` to confirm the usage line.","Add `-f` to revoke without the confirmation prompt once the args parse."],"exampleFix":"# before\nvagrant cloud version revoke hashicorp/bionic64\n# after\nvagrant cloud version revoke hashicorp/bionic64 1.0.0","handlingStrategy":"validation","validationCode":"abort 'usage: vagrant cloud version revoke <org/box> <version>' unless ARGV.length == 2 && ARGV.first.include?('/')\nsystem('vagrant', 'cloud', 'version', 'revoke', *ARGV)","typeGuard":null,"tryCatchPattern":"begin\n  Vagrant::Environment.new.cli(['cloud', 'version', 'revoke', 'org/box', '1.0.0'])\nrescue Vagrant::Errors::CLIInvalidUsage => e\n  warn e.message\n  exit 1\nend","preventionTips":["Keep org and box name as one slash-joined token.","Treat revocation as destructive: validate args and add -f only in scripts that already echo what they revoke.","Fail scripts on the first non-zero vagrant exit instead of continuing."],"tags":["vagrant","vagrant-cloud","cli","usage","box-version"],"backgroundTag":"invalid-cli-usage","analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}