Comments (6)
I don't plan to integrate the Chrome Webstore API in clasp
anytime soon. That would be out of scope of this tool at the moment. There may be other CLIs that are dedicated for this case.
Thanks for the issue though. Feel free to still comment here if you think differently.
from clasp.
Follow up question: how do I change the current deployment that an add-on uses? Would I need to use the redeploy command to indicate which deployment should be used?
From the Apps Script Clasp Guide:
This command updates an existing deployment with a new version and description:
clasp redeploy <deploymentId> <version> <description>
from clasp.
While having this feature normalized would be great, it seems that for now it will not be possible with this API, mainly because Doc Add-on are deployed on the Chrome Webstore.
Hence you have to use the Chrome webstore API to deploy your Add-ons.
However, if you choose to use it to deploy an add-on, you will not be able to deploy it again manually, because of an AppsScript internal issue that is not keeping track of the Addon deployement version.
If you still want to go this way, you can use this project that allow local development and deploying your script via command line: https://github.com/JeanRemiDelteil/gas-shell.
I recommend a thorough read of the readme before starting
from clasp.
Thanks for the reply @JeanRemiDelteil. If the deploy command doesn't deploy a google docs add-on, what is the purpose of clasp deploy
?
from clasp.
The deploy command is there to deploy a 'deployment', which can currently be used for webApp, execution API, or Gmail Addon. You can find the documentation on deployment here:
projects.deployments
For now, the deployment of Doc Add-on is not using the same logic.
Honestly I would love to be able to use a simple 'deploy' command in CLASP to update our Add-ons !
Maybe this new API will help prepare for this !?
from clasp.
@ryanolsonx The process of publishing an add-on is described here:
https://developers.google.com/apps-script/add-ons/publish
Interacting with the Chrome Web Store sounds like a good idea for a different CLI as it seems like a big set of commands with various options. It would be great if we could describe how to tie these two processes together.
Looks like there's already progress with an API/CLI:
API: https://developer.chrome.com/webstore/using_webstore_api
CLI: https://github.com/DrewML/chrome-webstore-upload-cli
npm: https://www.npmjs.com/package/chrome-store-api
Please comment if you try that CLI out and find success.
from clasp.
Related Issues (20)
- CWe
- Clarify what exactly the `fileExtension` setting in clasp.json does HOT 2
- log in error
- `.clasp` "rootDir" directive does not use a relative path and causes lots of issues/confusion
- 'clasp login' doesn't wait for response
- Access blocked: authorisation error when running clasp login
- Clasp claims it has pushed files even when Apps Script API is not enabled
- Clasp project dead ? HOT 3
- IMPORTANT: Clasp login may fail for new users HOT 2
- Clasp pull does not empty the local project folder before pulling
- Console log - incorrect time zone
- clasp push hangs if .claspignore file is present HOT 1
- A silent failure occurs if a file path listed in `filePushOrder` does not exist HOT 2
- TypeError: Missing internal module 'internal/deps/node:stream' HOT 2
- Tests are broken (access denied to "communal testing project")
- [RFC] Multiple (private) GAS targets: remotes HOT 6
- New feature of clasp revert clone! HOT 2
- [RFC] (Re)create consistent GAS project for codebase: `remote create` (multi-developer workflow)
- Unable to stop pushing manifest file appscript.json = forced to redeploy scipt after each change-push files HOT 3
- Documentation Issues with run.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clasp.