diff --git a/README.md b/README.md index 445c8d0cc..c03b1462c 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ npm install rdme ### Uploading a new Swagger file to ReadMe ```sh -rdme {path-to-swagger.json} --token={api-key} +rdme swagger {path-to-swagger.json} --token={api-key} ``` ### Editing an existing Swagger file ```sh -rdme {path-to-swagger.json} --token={api-key}-{existing-id} +rdme swagger {path-to-swagger.json} --token={api-key}-{existing-id} ``` ## Future diff --git a/lib/start.js b/lib/start.js index be1cd1b6a..888917955 100644 --- a/lib/start.js +++ b/lib/start.js @@ -7,7 +7,7 @@ exports.weight = 2; exports.run = function(config, info) { console.log('Welcome to the OpenAPI/Swagger uploader for ReadMe!'); console.log(''); - console.log('Have a Swagger file? ' + `${config.cli} swagger.json --token=[token]`.yellow); + console.log('Have a Swagger file? ' + `${config.cli} swagger swagger.json --token=[token]`.yellow); console.log('Need a Swagger file? ' + `${config.cli} init`.yellow); process.exit(); };