{"id":200,"date":"2022-05-21T23:22:09","date_gmt":"2022-05-21T23:22:09","guid":{"rendered":"https:\/\/viesapi.eu\/?page_id=200"},"modified":"2025-10-01T22:49:41","modified_gmt":"2025-10-01T21:49:41","slug":"vie-checker-cli-cmd","status":"publish","type":"page","link":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/","title":{"rendered":"VIES Checker CLI\/CMD"},"content":{"rendered":"<p>The <code>viesapi-cli.exe<\/code> client application allows for quick and automatic checking of entities (contractors) from the command line level (CLI \/ CMD) in terms of their current status in the VIES system. The application also allows you to save the downloaded data to a file in 3 formats:<\/p>\n<ul>\n<li>JSON<\/li>\n<li>PROP (list of properties in form of key = value)<\/li>\n<li>XML<\/li>\n<\/ul>\n<p>Application has been successfully tested in the following versions of MS Windows: XP, 7, 10 and 11. The latest version of the application is always available for download from the <a href=\"\/download\">Download<\/a> page.<\/p>\n<p>The full functionality of the application can be checked &#8211; without the need to create an account &#8211; using the provided <a href=\"\/test-vies-api\/\">Test API<\/a><\/p>\n<p>To use the add-in in the production API, you need to set up an account on the viesapi.eu website, purchase a minimum of the Business plan and generate an API key and API key identifier.<\/p>\n<p>The process of registering and setting up an account as well as generating keys has been described on the <a href=\"\/docs\/\">Documentation<\/a> website.<\/p>\n<h1>Activation<\/h1>\n<p>The shared executable program <code>viesapi-cli.exe<\/code> does not require installation and does not have to be run under an account with administrative privileges. To run the program, select the <code>Command Prompt<\/code> application from the <code>Start<\/code> menu or type <code>cmd<\/code> in the <code>Search programs and files<\/code> field and press Enter:<\/p>\n<p>After starting the console, go to the directory where the zip file with <code>viesapi-cli.exe<\/code> was downloaded and unpacked.<\/p>\n<p>Starting the program without specifying parameters displays the help window.<\/p>\n<h1>Configuration<\/h1>\n<p>Launching the <code>viesapi-cli.exe<\/code> application without specifying the <code>API key ID<\/code> and <code>API key<\/code> allows you to query the test environment (more details on the <a href=\"\/test-vies-api\/\">Test VIES API<\/a> page).<\/p>\n<p>In order to connect to the production environment, it is necessary to call out the <code>viesapi-cli.exe<\/code> application with the authentication parameters, which are:<\/p>\n<ul>\n<li><code>keyid<\/code> \u2013 the parameter should contain the API key identifier (ID) generated on the account on the viesapi.eu website,<\/li>\n<li><code>key<\/code> \u2013 the parameter should contain the API key (Key) generated on the account on the viesapi.eu website.<\/li>\n<\/ul>\n<p>Details on generating the identifier and key are described on the <a href=\"\/docs\/\">Documentation<\/a> page. Below is an example of calling the application with authentication parameters <em>(<code>keyid<\/code><\/em> and <code><em>key<\/em><\/code>):<\/p>\n<p><code>viesapi-cli.exe -keyid XXXXXXXXXXXX -key YYYYYYYYYYYY -vies -format xml<\/code><\/p>\n<h1>Calling syntax<\/h1>\n<p>Syntax of calling the <code>viesapi-cli.exe<\/code> program:<\/p>\n<p><code>viesapi-cli.exe &lt;action&gt; <action> [options]<\/action><\/code><\/p>\n<p>Available actions:<\/p>\n<p><code>-help<\/code> &#8211; description of program calling parameters<br \/>\n<code>-vies<\/code> &#8211; current VIES system status<br \/>\n<code>-account<\/code> &#8211; current account status<br \/>\n<code>-data<\/code> &#8211; get company data from VIES<br \/>\n<code>-data-parsed<\/code> &#8211; get company data from VIES with parsed data<br \/>\n<code>-batch-upload<\/code> &#8211; upload batch of VAT numbers and get batch token<br \/>\n<code>-batch-download<\/code> &#8211; check batch result and download data<\/p>\n<p>Available options:<\/p>\n<p><code>-keyid string<\/code> &#8211; API key identifier<br \/>\n<code>-key string<\/code> &#8211; API key<br \/>\n<code>-euvat number<\/code> &#8211; EU VAT ID number with country prefix<br \/>\n<code>-token string<\/code> &#8211; batch token value<br \/>\n<code>-format type<\/code> &#8211; output format type (json, prop, xml), default: json<br \/>\n<code>-file-in path<\/code> &#8211; input file path<br \/>\n<code>-file-out path<\/code> &#8211; output file path<br \/>\n<code>-proxy url<\/code> &#8211; HTTP proxy configuration (as URL <code>http:\/\/user:password@hostname:port<\/code>)<\/p>\n<h1>Examples<\/h1>\n<p><strong>ATTENTION<\/strong>! The following examples are adapted to the data collected in the test environment. To perform checks on the production environment, add the <code>\u2013keyid<\/code> and <code>\u2013key<\/code> parameters with the appropriate values to each query.<\/p>\n<p>1. Checks the current VIES system status and displays the result as XML:<\/p>\n<p><code>viesapi-cli.exe -vies -format xml<\/code><\/p>\n<p>2. Checks the current account status and saves the result to a JSON file:<\/p>\n<p><code>viesapi-cli.exe -account -file-out result.json<\/code>.<\/p>\n<p>3. Downloads company data from VIES and displays the result as PROP:<\/p>\n<p><code>viesapi-cli.exe -data -euvat PL5213003700 -format prop<\/code><\/p>\n<p>4. Downloads company parsed data from VIES and saves the result to a JSON file:<\/p>\n<p><code>viesapi-cli.exe -data-parsed -euvat PL5213003700 -file-out result.json<\/code><\/p>\n<p>5. Uploads a batch file (one number per line) and receives a batch token for result checking:<\/p>\n<p><code>viesapi-cli.exe -batch-upload -file-in numbers.csv<\/code><\/p>\n<p>6. Checks the current batch status and saves the result to a JSON file:<\/p>\n<p><code>viesapi-cli.exe -batch-download -token 1fd853a5-ac9e-490c-81a1-d4900a9c906c -file-out result.json<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The viesapi-cli.exe client application allows for quick and automatic checking of entities (contractors) from the command line level (CLI \/ CMD) in terms of their current status in the VIES system. The application also allows you to save the downloaded data to a file in 3 formats: JSON PROP (list [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-200","page","type-page","status-publish","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.6.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"CMD\/CLI client for VIES validation\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.6.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"pl_PL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"VIES API - VAT Information and Exchange System API - API for EU VAT Validation (VIES)\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"VIES Checker CLI\/CMD - VIES API - VAT Information and Exchange System API\" \/>\n\t\t<meta property=\"og:description\" content=\"CMD\/CLI client for VIES validation\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/viesapi.eu\/wp-content\/uploads\/2022\/11\/icon-64.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/viesapi.eu\/wp-content\/uploads\/2022\/11\/icon-64.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-05-21T23:22:09+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-10-01T21:49:41+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"VIES Checker CLI\/CMD - VIES API - VAT Information and Exchange System API\" \/>\n\t\t<meta name=\"twitter:description\" content=\"CMD\/CLI client for VIES validation\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/viesapi.eu\/wp-content\/uploads\/2022\/11\/icon-64.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/vies-checker-cli-cmd\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/vies-checker-cli-cmd\\\/#listItem\",\"name\":\"VIES Checker CLI\\\/CMD\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/vies-checker-cli-cmd\\\/#listItem\",\"position\":2,\"name\":\"VIES Checker CLI\\\/CMD\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/#listItem\",\"name\":\"Home\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/#organization\",\"name\":\"VIES API - VAT Information and Exchange System API\",\"description\":\"API for EU VAT Validation (VIES)\",\"url\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/\",\"telephone\":\"+48222199199\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/viesapi.eu\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/vies-api-vat-information-exchange-system_mini.png\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/vies-checker-cli-cmd\\\/#organizationLogo\",\"width\":80,\"height\":80,\"caption\":\"VIES API EU\"},\"image\":{\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/vies-checker-cli-cmd\\\/#organizationLogo\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/vies-checker-cli-cmd\\\/#webpage\",\"url\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/vies-checker-cli-cmd\\\/\",\"name\":\"VIES Checker CLI\\\/CMD - VIES API - VAT Information and Exchange System API\",\"description\":\"CMD\\\/CLI client for VIES validation\",\"inLanguage\":\"pl-PL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/vies-checker-cli-cmd\\\/#breadcrumblist\"},\"datePublished\":\"2022-05-21T23:22:09+01:00\",\"dateModified\":\"2025-10-01T22:49:41+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/#website\",\"url\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/\",\"name\":\"VIES API - VAT Information and Exchange System API\",\"description\":\"API for EU VAT Validation (VIES)\",\"inLanguage\":\"pl-PL\",\"publisher\":{\"@id\":\"https:\\\/\\\/viesapi.eu\\\/pl\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"VIES Checker CLI\/CMD - VIES API - API systemu informacji i wymiany VAT","description":"Klient CMD\/CLI do walidacji VIES","canonical_url":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/viesapi.eu\/pl\/#listItem","position":1,"name":"Home","item":"https:\/\/viesapi.eu\/pl\/","nextItem":{"@type":"ListItem","@id":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/#listItem","name":"VIES Checker CLI\/CMD"}},{"@type":"ListItem","@id":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/#listItem","position":2,"name":"VIES Checker CLI\/CMD","previousItem":{"@type":"ListItem","@id":"https:\/\/viesapi.eu\/pl\/#listItem","name":"Home"}}]},{"@type":"Organization","@id":"https:\/\/viesapi.eu\/pl\/#organization","name":"VIES API - VAT Information and Exchange System API","description":"API for EU VAT Validation (VIES)","url":"https:\/\/viesapi.eu\/pl\/","telephone":"+48222199199","logo":{"@type":"ImageObject","url":"https:\/\/viesapi.eu\/wp-content\/uploads\/2022\/04\/vies-api-vat-information-exchange-system_mini.png","@id":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/#organizationLogo","width":80,"height":80,"caption":"VIES API EU"},"image":{"@id":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/#organizationLogo"}},{"@type":"WebPage","@id":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/#webpage","url":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/","name":"VIES Checker CLI\/CMD - VIES API - VAT Information and Exchange System API","description":"CMD\/CLI client for VIES validation","inLanguage":"pl-PL","isPartOf":{"@id":"https:\/\/viesapi.eu\/pl\/#website"},"breadcrumb":{"@id":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/#breadcrumblist"},"datePublished":"2022-05-21T23:22:09+01:00","dateModified":"2025-10-01T22:49:41+01:00"},{"@type":"WebSite","@id":"https:\/\/viesapi.eu\/pl\/#website","url":"https:\/\/viesapi.eu\/pl\/","name":"VIES API - VAT Information and Exchange System API","description":"API for EU VAT Validation (VIES)","inLanguage":"pl-PL","publisher":{"@id":"https:\/\/viesapi.eu\/pl\/#organization"}}]},"og:locale":"pl_PL","og:site_name":"VIES API - VAT Information and Exchange System API - API for EU VAT Validation (VIES)","og:type":"article","og:title":"VIES Checker CLI\/CMD - VIES API - VAT Information and Exchange System API","og:description":"CMD\/CLI client for VIES validation","og:url":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/","og:image":"https:\/\/viesapi.eu\/wp-content\/uploads\/2022\/11\/icon-64.png","og:image:secure_url":"https:\/\/viesapi.eu\/wp-content\/uploads\/2022\/11\/icon-64.png","article:published_time":"2022-05-21T23:22:09+00:00","article:modified_time":"2025-10-01T21:49:41+00:00","twitter:card":"summary_large_image","twitter:title":"VIES Checker CLI\/CMD - VIES API - VAT Information and Exchange System API","twitter:description":"CMD\/CLI client for VIES validation","twitter:image":"https:\/\/viesapi.eu\/wp-content\/uploads\/2022\/11\/icon-64.png"},"aioseo_meta_data":{"post_id":"200","title":null,"description":"Klient CMD\/CLI do walidacji VIES","keywords":null,"keyphrases":{"focus":{"keyphrase":"vies","score":84},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2022-10-16 23:00:46","updated":"2026-11-26 20:50:30","seo_analyzer_scan_date":null,"focus_keyword":"vies","additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/viesapi.eu\/pl\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tVIES Checker CLI\/CMD\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/viesapi.eu\/pl\/"},{"label":"VIES Checker CLI\/CMD","link":"https:\/\/viesapi.eu\/pl\/vies-checker-cli-cmd\/"}],"_links":{"self":[{"href":"https:\/\/viesapi.eu\/pl\/wp-json\/wp\/v2\/pages\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/viesapi.eu\/pl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/viesapi.eu\/pl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/viesapi.eu\/pl\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/viesapi.eu\/pl\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":5,"href":"https:\/\/viesapi.eu\/pl\/wp-json\/wp\/v2\/pages\/200\/revisions"}],"predecessor-version":[{"id":1270,"href":"https:\/\/viesapi.eu\/pl\/wp-json\/wp\/v2\/pages\/200\/revisions\/1270"}],"wp:attachment":[{"href":"https:\/\/viesapi.eu\/pl\/wp-json\/wp\/v2\/media?parent=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}